Skip to content

Instantly share code, notes, and snippets.

@ryanjyost
Last active January 24, 2017 05:02
Show Gist options
  • Save ryanjyost/ec267d65f7bcd8b6b8866a1a5a2a0529 to your computer and use it in GitHub Desktop.
Save ryanjyost/ec267d65f7bcd8b6b8866a1a5a2a0529 to your computer and use it in GitHub Desktop.
Pre-Redux: src/rainy-day-fund/src/Expenses.js
//src/components/Expenses.js
import React from 'react';
import { Link } from 'react-router'
import { Button } from 'react-bootstrap';
import Expense from './Expense'
import TotalExpenses from './TotalExpenses'
const Expenses = () => {
return (
<div id="Expenses">
<h4 id="expense-header">What are your monthly expenses?</h4>
<Button id="add-expense-btn" block>
Add an expense
</Button>
<ul id="expense-list">
<Expense/>
<Expense/>
<Expense/>
</ul>
<TotalExpenses/><br/>
<Button className="nav-btn" block>
<Link className="link" to="savings-plan">Go to Your Savings Plan</Link>
</Button>
</div>
);
}
export default Expenses;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment