1<NumberFormat value={this.state.profit} thousandSeparator={true} prefix={'$'} onValueChange={(values) => {
2 const {formattedValue, value} = values;
3 // formattedValue = $2,223
4 // value ie, 2223
5 this.setState({profit: formattedValue})
6 }}/>