Last active
January 15, 2017 21:41
-
-
Save ryanjyost/c75368a53227d581483fad4e0eac4072 to your computer and use it in GitHub Desktop.
rainy-day-fund/src/components/router.js
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
//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