A lightweight React component for formatting currency values using Intl.NumberFormat under the hood. Current stable version is 1.1.3, with low release cadence (last update 5+ years ago). Supports custom locale, currency code, pattern, decimal and group separators. Key differentiator: simple component-based API vs. utility functions. Requires React 16.x. Note: this is the v2 fork of react-currency-formatter; the original package is deprecated.
npm install react-currency-formatter-v2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of the Currency component with required quantity and optional formatting props.
Wrap in a <span> or use as a text child.
Upgrade to react-currency-formatter-v2 (this package).
Use proper locale strings per Intl.NumberFormat specification.
Consider alternative with wider React support.
Include a polyfill for Intl.NumberFormat or use a different library for legacy support.
Use: const Currency = require('react-currency-formatter').default;Ensure currency is a string like 'USD'.
Use default import: import Currency from 'react-currency-formatter';
No dependency data recorded yet.