react-numeric
A react component for formatted number form fields
react-numeric is a wrapper component for autonumeric.
Installition
yarn add react-numeric# or npm install react-numeric --save
Usage
import ReactNumeric from 'react-numeric'; { const value = props; // number typed return <ReactNumeric = ="$" ="0" ="." ="" = /> ;} // You can use predefinedOptionsimport predefinedOptions from 'react-numeric'; { const value = props; // number typed return <ReactNumeric = = = /> ;} // if you want to store value as string typed{ const value = props; // string typed return <ReactNumeric = ="string" = /> ;}