React Hookers - v6.3.0
    Preparing search index...

    Function useNumberFormat

    • Provides localized Intl.NumberFormat for the current locale.

      Parameters

      • options: NumberFormatOptions = emptyObject

        Format options. Create options outside of rendering to enable format caching.

      Returns NumberFormat

      const format = useNumberFormat({ style: 'currency', currency: 'USD' });

      format.format(100);
      // ⮕ '$100.00'