Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created July 3, 2016 22:17
Show Gist options
  • Save chuck0523/10458b5565337569ec5b423596d017d3 to your computer and use it in GitHub Desktop.
Save chuck0523/10458b5565337569ec5b423596d017d3 to your computer and use it in GitHub Desktop.
import React from 'react'
import IndexRoute from 'react-router/lib/IndexRoute'
import Route from 'react-router/lib/Route'
import App from './components/App'
import Home from './components/Home'
import JobBoard from './components/JobBoard'
import JobDetail from './components/JobDetail'
import About from './components/About'
import Help from './components/Help'
import AppQueries from './queries/AppQueries'
export default (
<Route
path="/"
component={App}
queries={AppQueries}
>
<IndexRoute
component={Home}
/>
<Route
path="board"
component={JobBoard}
queries={AppQueries}
/>
<Route
path="detail"
component={JobDetail}
queries={AppQueries}
/>
<Route
path="about"
component={About}
/>
<Route
path="help"
component={Help}
/>
</Route>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment