middleware setup included by default

This commit is contained in:
stephen grider 2016-01-01 16:19:59 -08:00
parent 1b822281fb
commit 14813f829d
1 changed files with 3 additions and 1 deletions

View File

@ -1,11 +1,13 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provider store={createStore(reducers)}>
<App />