middleware setup included by default
This commit is contained in:
parent
1b822281fb
commit
14813f829d
|
@ -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 />
|
||||
|
|
Loading…
Reference in New Issue