Created
May 4, 2018 21:39
Star
You must be signed in to star a gist
Example of the Providence Geeks website entry point
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 ReactDOM from 'react-dom'; | |
import { IndexRoute, Router, Route, browserHistory } from 'react-router'; | |
import Bootstrap from './components/bootstrap/bootstrap'; | |
import Home from './views/home/home'; | |
import PostDetails from './views/post-details/post-details'; | |
ReactDOM.render( | |
<Router history={browserHistory}> | |
<Route path='/' component={Bootstrap}> | |
<IndexRoute component={Home} /> | |
<Route path='/home' component={Home} /> | |
<Route path='/post/:id' component={PostDetails} /> | |
</Route> | |
</Router>, | |
document.getElementById('root') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment