Next JS - Formatted number

0 votes
922 views
added Mar 5, 2019 in React by LC Marshal Captain (25,790 points)
recategorized May 14, 2019 by LC Marshal
import { FormattedRelative, FormattedNumber } from 'react-intl';
RM <FormattedNumber value={parseInt(ColumnSideData.result.field_prop_asking_price.und['0'].value, 10)} />
//output RM 590,000

 

1 Response

0 votes
responded May 14, 2019 by LC Marshal Captain (25,790 points)
<p className="prop-price-mobile d-md-none">
  RM
  {' '}
  <FormattedNumber value={parseInt(asking_price, 10)} />
</p>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...