File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import { render } from 'react-dom'
3
3
import { Provider } from 'react-redux'
4
- import { Route } from 'react-router'
5
- import { ConnectedRouter } from 'react-router-redux '
6
- import store , { history } from './store'
4
+ import { Router , Route } from 'react-router'
5
+ import createHistory from 'history/createBrowserHistory '
6
+ import store from './store'
7
7
import App from './containers/app'
8
8
import Home from './containers/home'
9
9
import About from './containers/about'
@@ -12,15 +12,16 @@ import 'sanitize.css/sanitize.css'
12
12
import './index.css'
13
13
14
14
const target = document . querySelector ( '#root' )
15
+ const history = createHistory ( )
15
16
16
17
render (
17
18
< Provider store = { store } >
18
- < ConnectedRouter history = { history } >
19
+ < Router history = { history } >
19
20
< App >
20
21
< Route exact path = "/" component = { Home } />
21
22
< Route exact path = "/about-us" component = { About } />
22
23
</ App >
23
- </ ConnectedRouter >
24
+ </ Router >
24
25
</ Provider > ,
25
26
target
26
27
)
You can’t perform that action at this time.
0 commit comments