React Format
A React Component to make formatting money/currency easier
Installation
npm i react-format --save
Usage
// First import an available formatting componentimport Money from 'react-format'; // Then use it<Money ="en-US" ="USD">3400</Money>// This renders $3,400.00
API
Available Formatting Components
Money
<Money /* * . * "en-US" */ ="en-US" /* * . * "USD" */ ="USD">/* The child should be the number you want formatted */</Money>
Date
<Date /* * . * "en-US" */ ="en-US" /* * . * . */ => /* The child should be the date you want formatted */</Date>