We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7245b58 commit e621c79Copy full SHA for e621c79
examples/counter/containers/App.js
@@ -1,10 +1,11 @@
1
import React from 'react';
2
import CounterApp from './CounterApp';
3
-import { createStore } from 'redux';
+import { createStore, applyMiddleware } from 'redux';
4
import { Provider } from 'redux/react';
5
import * as reducers from '../reducers';
6
7
-const store = createStore(reducers);
+const createStoreWithMiddleware = applyMiddleware()(createStore);
8
+const store = createStoreWithMiddleware(reducers);
9
10
export default class App {
11
render() {
0 commit comments