Last active
January 14, 2017 16:07
-
-
Save Chryus/5d7acfcb2dfcf0f90c576228615186a0 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 '../components/App' | |
import Home from '../components/Home' | |
import PromptContainer from '../containers/PromptContainer' | |
module.exports = ( | |
<Router history={hashHistory}> | |
<Route path='/' component={App}> | |
<IndexRoute component={Home}></IndexRoute> | |
<Route path='playerOne' header='Player One' component={PromptContainer} /> | |
<Route path='playerTwo/:playerOne' header='Player Two' component={PromptContainer} /> | |
</Route> | |
</Router> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment