Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 793 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 793 Bytes

react-money-component

Build Status Coverage Status

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.