Returns a localized Intl.NumberFormat for the current locale.
Format options. Create the options object outside of render to enable formatter caching.
const format = useNumberFormat({ style: 'currency', currency: 'USD' });format.format(100);// ⮕ '$100.00' Copy
const format = useNumberFormat({ style: 'currency', currency: 'USD' });format.format(100);// ⮕ '$100.00'
Returns a localized Intl.NumberFormat for the current locale.