This repository was archived by the owner on Oct 26, 2018. It is now read-only.
File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import React from 'react'
6
6
import ReactDOM from 'react-dom'
7
7
import { createStore , combineReducers } from 'redux'
8
8
import { Provider } from 'react-redux'
9
- import { Router , Route , IndexRoute , hashHistory } from 'react-router'
9
+ import { Router , Route , IndexRoute , browserHistory } from 'react-router'
10
10
import { syncHistoryWithStore , routerReducer } from 'react-router-redux'
11
11
12
12
import * as reducers from './reducers'
@@ -18,8 +18,7 @@ const reducer = combineReducers({
18
18
} )
19
19
20
20
const DevTools = createDevTools (
21
- < DockMonitor toggleVisibilityKey = "ctrl-h"
22
- changePositionKey = "ctrl-q" >
21
+ < DockMonitor toggleVisibilityKey = "ctrl-h" changePositionKey = "ctrl-q" >
23
22
< LogMonitor theme = "tomorrow" preserveScrollTop = { false } />
24
23
</ DockMonitor >
25
24
)
@@ -28,7 +27,7 @@ const store = createStore(
28
27
reducer ,
29
28
DevTools . instrument ( )
30
29
)
31
- const history = syncHistoryWithStore ( hashHistory , store )
30
+ const history = syncHistoryWithStore ( browserHistory , store )
32
31
33
32
ReactDOM . render (
34
33
< Provider store = { store } >
Original file line number Diff line number Diff line change 7
7
"react" : " ^0.14.7" ,
8
8
"react-dom" : " ^0.14.7" ,
9
9
"react-redux" : " ^4.3.0" ,
10
- "react-router" : " ^2.0.0-rc5 " ,
10
+ "react-router" : " ^2.0.0" ,
11
11
"redux" : " ^3.2.1" ,
12
- "react-router-redux" : " ^3 .0.0"
12
+ "react-router-redux" : " ^4 .0.0"
13
13
},
14
14
"devDependencies" : {
15
15
"babel-core" : " ^6.4.5" ,
You can’t perform that action at this time.
0 commit comments