Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

number format reactjs

<NumberFormat value={this.state.profit} thousandSeparator={true} prefix={'$'} onValueChange={(values) => {
    const {formattedValue, value} = values;
    // formattedValue = $2,223
    // value ie, 2223
    this.setState({profit: formattedValue})
  }}/>
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #number #format #reactjs
ADD COMMENT
Topic
Name
1+1 =