Skip to content

Instantly share code, notes, and snippets.

@chuck0523

chuck0523/routes.js

Created Jul 3, 2016
Embed
What would you like to do?
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