Created
October 1, 2017 21:09
-
-
Save dclarke-modus/84b094dcb8dafcd10386ea852345d1d7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var React = require('react'); | |
var ReactRouter = require('react-router-dom'); | |
var Layout = require('pages/Layout'); | |
var Index = require('pages/Index'); | |
var Router = ReactRouter.BrowserRouter; | |
var Route = ReactRouter.Route; | |
var IndexRoute = ReactRouter.IndexRoute; | |
var History = ReactRouter.hashHistory; | |
class App extends React.Component { | |
render () { | |
return ( | |
<Router history={History}> | |
<Route path="/" component={Layout}> | |
<IndexRoute component={Index} /> | |
</Route> | |
</Router> | |
); | |
}; | |
} | |
module.exports = App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment