react-money-component
v1.5.0
Published
React.js Money Component
Downloads
42
Readme
react-money-component
Money handling component for React.js
Installation:
npm install --save react-money-component
##### Usage:
import React from 'react';
import Money from 'react-money-component';
export default class MyProduct extends React.Component {
render() {
return (
<Money cents={999} currency="GBP" />
)
}
}
The component returns a <span/>
containing the formatted value of the currency.