Skip to content

Instantly share code, notes, and snippets.

@Chryus
Last active January 14, 2017 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chryus/5d7acfcb2dfcf0f90c576228615186a0 to your computer and use it in GitHub Desktop.
Save Chryus/5d7acfcb2dfcf0f90c576228615186a0 to your computer and use it in GitHub Desktop.
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