Skip to content

Instantly share code, notes, and snippets.

@ryanjyost
Last active January 15, 2017 21:41
Show Gist options
  • Save ryanjyost/c75368a53227d581483fad4e0eac4072 to your computer and use it in GitHub Desktop.
Save ryanjyost/c75368a53227d581483fad4e0eac4072 to your computer and use it in GitHub Desktop.
rainy-day-fund/src/components/router.js
//src/router.js
import React from 'react'
import { Router, Route, hashHistory, IndexRoute } from 'react-router'
import App from './components/App'
import Landing from './components/Landing'
import WhatIsARainyDayFund from './components/WhatIsARainyDayFund'
import Assumptions from './components/Assumptions'
import Expenses from './components/Expenses'
import SavingsPlan from './components/SavingsPlan'
export default(
<Router history={hashHistory}>
<Route path="/" component={App}>
<IndexRoute component={Landing} />
<Route path="what-is-a-rainy-day-fund" component={WhatIsARainyDayFund} />
<Route path="assumptions" component={Assumptions} />
<Route path="expenses" component={Expenses} />
<Route path="savings-plan" component={SavingsPlan} />
</Route>
</Router>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment