Skip to content

Instantly share code, notes, and snippets.

@ryanjyost
Created January 11, 2017 04:33
Show Gist options
  • Save ryanjyost/54b00f72b4a60948153a1fd2fb95a398 to your computer and use it in GitHub Desktop.
Save ryanjyost/54b00f72b4a60948153a1fd2fb95a398 to your computer and use it in GitHub Desktop.
Pre-Redux: rainy-day-fund/src/components/TotalExpenses.js
//src/components/TotalExpenses.js
import React from 'react';
import {formatDollarValues} from '../helpers'
const TotalExpenses = () => {
return (
<div id="TotalExpenses">
<h3>Total Monthly Expenses</h3>
{' '}
{/* Expense Total */}
<h3 id="expenses-total">
${' '}{formatDollarValues(300)}
</h3>
</div>
)
}
export default TotalExpenses;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment