Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit a304bda

Browse files
viatskotimdorr
authored andcommitted
README.md: move applyMiddleware to it's respective example (#446)
It's not used in 1st example, but used in the 2nd one. This change makes it clear that following imports are coming from redux in the 2nd example, while cleaning up unused import in 1st.
1 parent 229ac56 commit a304bda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Let's take a look at a simple example.
3535
```js
3636
import React from 'react'
3737
import ReactDOM from 'react-dom'
38-
import { createStore, combineReducers, applyMiddleware } from 'redux'
38+
import { createStore, combineReducers } from 'redux'
3939
import { Provider } from 'react-redux'
4040
import { Router, Route, browserHistory } from 'react-router'
4141
import { syncHistoryWithStore, routerReducer } from 'react-router-redux'
@@ -110,6 +110,7 @@ You should not read the location state directly from the Redux store. This is be
110110
React Router provides singleton versions of history (`browserHistory` and `hashHistory`) that you can import and use from anywhere in your application. However, if you prefer Redux style actions, the library also provides a set of action creators and a middleware to capture them and redirect them to your history instance.
111111

112112
```js
113+
import { createStore, combineReducers, applyMiddleware } from 'redux';
113114
import { routerMiddleware, push } from 'react-router-redux'
114115

115116
// Apply the middleware to the store

0 commit comments

Comments
 (0)