Lightweight React components (Number, Currency) and context provider for formatting numbers and currencies using the ECMAScript Intl.NumberFormat API. Current stable version is 1.1.1, released under MIT license. Release cadence is low (latest update over 2 years ago). Differentiates from alternatives like react-number-format by relying natively on Intl.NumberFormat, not requiring polyfills for modern browsers, and providing a Context Provider and hook for global configuration. Works in modern browsers and IE>=11.
npm install react-intl-number-formatNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of Number and Currency components with an IntlProvider context for global locale and options.
Import with explicit namespacing or rename on import: import { Number as IntlNumber, Currency as IntlCurrency } from 'react-intl-number-format'.Use Intl polyfill (e.g., @formatjs/intl-numberformat) for Node.js or older browsers.
Explicitly pass props to Number/Currency if you need to override provider settings.
Install and import 'intl' polyfill or '@formatjs/intl-numberformat' for Node.js <14.
Run 'npm install react-intl-number-format' and ensure correct import path.
Ensure children are numbers or numeric strings: <Number>{20000}</Number>.