Skip to content

Commit

Permalink
Add Redux dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Goutay committed Mar 27, 2016
1 parent be48d4d commit 9e82a2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/index.jsx
@@ -1,12 +1,15 @@
import React from 'react';
import ReactDOM from 'react-dom';
import {List, Map} from 'immutable';
import {createStore} from 'redux';
import {compose, createStore} from 'redux';
import {Provider} from 'react-redux';
import reducer from './reducer';
import {TodoAppContainer} from './components/TodoApp';

const store = createStore(reducer);
const createStoreDevTools = compose(
window.devToolsExtension ? window.devToolsExtension() : f => f
)(createStore);
const store = createStoreDevTools(reducer);
store.dispatch({
type: 'SET_STATE',
state: {
Expand Down

0 comments on commit 9e82a2b

Please sign in to comment.