<script src="https://unpkg.com/react@17.0.2/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@17.0.2/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone@7.14.7/babel.min.js"></script>
<script type="text/babel">
// The number you want to format
// Format the number with the Indian locale
const IndianFormatter = new Intl.NumberFormat("en-IN");
const IndianFormattedNumber = IndianFormatter.format(number);
<div className="container">
<h3>React Js Number format - Indian (comma separated)</h3>
<p>Original Number: {number}</p>
<p>Formatted Number (Indian): {IndianFormattedNumber}</p>
ReactDOM.render(<App />, document.getElementById("app"));
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
font-family: Arial, sans-serif;