Skip to content

Commit e621c79

Browse files
committed
Fix counter example
1 parent 7245b58 commit e621c79

File tree

1 file changed

+3
-2
lines changed
  • examples/counter/containers

1 file changed

+3
-2
lines changed

examples/counter/containers/App.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import React from 'react';
22
import CounterApp from './CounterApp';
3-
import { createStore } from 'redux';
3+
import { createStore, applyMiddleware } from 'redux';
44
import { Provider } from 'redux/react';
55
import * as reducers from '../reducers';
66

7-
const store = createStore(reducers);
7+
const createStoreWithMiddleware = applyMiddleware()(createStore);
8+
const store = createStoreWithMiddleware(reducers);
89

910
export default class App {
1011
render() {

0 commit comments

Comments
 (0)