Created
February 18, 2017 23:58
-
-
Save ayroblu/0e24f06241c0fec13929388197b21214 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { Router, Route, IndexRoute, browserHistory } from 'react-router' | |
import App from './containers/App' | |
import FirstPage from './containers/FirstPage' | |
import SecondPage from './containers/SecondPage' | |
import NoMatch from './components/NoMatch' | |
const Routes = props => { | |
return ( | |
<Router history={browserHistory}> | |
<Route path="/" component={App}> | |
<IndexRoute component={FirstPage}/> | |
<Route path="second" component={SecondPage}/> | |
<Route path="*" component={NoMatch}/> | |
</Route> | |
</Router> | |
) | |
} | |
export default Routes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment