Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react currency format

npm install react-currency-format --save --force //Install on your project. 
//Import On Your project
//ES6
import CurrencyFormat from 'react-currency-format';

//ES5
const CurrencyFormat = require('react-currency-format');

//Typescript
import * as CurrencyFormat from 'react-currency-format';

//Usage  Example 
<CurrencyFormat
  renderText={(value) => (
    <>
 	//Your Code. 
    </>
  )}
  decimalScale={2}
  value={0}
  displayType={'text'}
  prefix={'$'}
  />
 
PREVIOUS NEXT
Tagged: #react #currency #format
ADD COMMENT
Topic
Name
6+2 =