react-number-format material-ui styling code example
Example: 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})
}}/>