Provides localized Intl.NumberFormat for the current locale.
Format options. Create options outside of rendering to enable format 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'
Provides localized Intl.NumberFormat for the current locale.