File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
modules/app/components/App Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import 'babel-polyfill'
2
2
import React from 'react'
3
3
import ReactDOM from 'react-dom'
4
4
import { ApolloProvider } from 'react-apollo'
5
- import { BrowserRouter } from 'react-router'
5
+ import { BrowserRouter } from 'react-router-dom '
6
6
import { ThemeProvider } from 'react-css-themr'
7
7
8
8
import './styles/commons.scss'
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
- import { Match , Miss } from 'react-router'
2
+ import { Switch , Route } from 'react-router-dom '
3
3
import { themr } from 'react-css-themr'
4
4
5
5
import appTheme from './theme.scss'
@@ -13,8 +13,10 @@ export function App({ theme }) {
13
13
< h4 > Welcome!</ h4 >
14
14
</ div >
15
15
16
- < Match exactly pattern = '/' component = { Home } />
17
- < Miss component = { NotFound } />
16
+ < Switch >
17
+ < Route exact pattern = '/' component = { Home } />
18
+ < Route component = { NotFound } />
19
+ </ Switch >
18
20
</ div >
19
21
)
20
22
}
Original file line number Diff line number Diff line change 26
26
"react-css-themr" : " ^1.6.1" ,
27
27
"react-dom" : " ^15.4.1" ,
28
28
"react-redux" : " ^5.0.2" ,
29
- "react-router" : " ^4.0.0-alpha .6" ,
29
+ "react-router-dom " : " ^4.0.0-beta .6" ,
30
30
"react-toolbox" : " ^1.3.1" ,
31
31
"redux" : " ^3.6.0" ,
32
32
"redux-devtools-extension" : " ^1.0.0" ,
You can’t perform that action at this time.
0 commit comments