Skip to content

Commit

Permalink
Merge pull request ForbesLindesay#7 from gaearon/patch-1
Browse files Browse the repository at this point in the history
Use modern API and conventions in README
  • Loading branch information
ForbesLindesay committed Feb 4, 2016
2 parents 3dd1319 + e260a04 commit 19944bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ import { createStore, applyMiddleware } from 'redux';
import api from './middleware/api';
import reducer from './reducers';

let store = applyMiddleware(api)(createStore)(reducer);
// Note: passing middleware as the last argument to createStore requires redux@>=3.1.0
let store = createStore(reducer, applyMiddleware(api));
console.log(store.getState());
// {
// optimist: {...},
Expand Down

0 comments on commit 19944bd

Please sign in to comment.