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

Commit 3545a3e

Browse files
committed
Merge pull request #78 from tbloncar/tb-readme-update
Update imports and use ReactDOM.render in README example
2 parents 8a8654f + 63e9863 commit 3545a3e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,24 @@ it, and also change it with an action.
7272
Here's some code:
7373

7474
```js
75+
import React from 'react'
76+
import ReactDOM from 'react-dom'
7577
import { createStore, combineReducers } from 'redux'
7678
import { Provider } from 'react-redux'
7779
import { Router, Route } from 'react-router'
78-
import createBrowserHistory from 'history/lib/createBrowserHistory'
80+
import { createHistory } from 'history'
7981
import { syncReduxAndRouter, routeReducer } from 'redux-simple-router'
8082
import reducers from '<project-path>/reducers'
8183

8284
const reducer = combineReducers(Object.assign({}, reducers, {
8385
routing: routeReducer
8486
}))
8587
const store = createStore(reducer)
86-
const history = createBrowserHistory()
88+
const history = createHistory()
8789

8890
syncReduxAndRouter(history, store)
8991

90-
React.render(
92+
ReactDOM.render(
9193
<Provider store={store}>
9294
<Router history={history}>
9395
<Route path="/" component={App}>

0 commit comments

Comments
 (0)