💻 DEMO!
import Currency from 'react-currency-formatter';
<Currency
quantity={45685}
currency="EUR"
/>
import Currency from 'react-currency-formatter';
<Currency
quantity={45685} // Required
currency="USD" // Optional (USD by default)
locale="en_EN" // Optional
pattern="##,### !" // Optional
decimal="," // Optional
group="." // Optional
/>
import * as React from 'react'
import * as CurrencyFormatter from 'react-currency-formatter'
type Props = {
price: number,
currency: string,
}
const ProductionPrice: React.SFC<Props> = (props: Props) => (
<CurrencyFormatter quantity={props.price} currency={props.currency} />
)
export default ProductionPrice
Please open an issue for support.
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.