Welcome aboard! We are happy you are here and wish you good net-raft!
// you must install npm i react-pretty-numbers
import React from 'react';
import NumericLabel from 'react-pretty-numbers';
class App extends React.Component {
constructor(props){
super(props);
}
render() {
let myNumber = 12565;
var option = {
justification: 'L',
'precision':2,
'shortFormat':true,
'shortFormatMinValue': 1000,
'shortFormatPrecision': 1
};
return(
<div>
<NumericLabel params={option}>{myNumber}</NumericLabel>
</div>
);
}
}
export default App;
The most helpful REACT solutions
How to get client ip address using react ?REACT Click to see more ... 19.2K 421