Socket
Socket
Sign inDemoInstall

react-number-format-with-commas

Package Overview
Dependencies
3
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-number-format-with-commas

It's just an input form with commas that returns the number (as a string sans commas) to the supplied onChange handler.


Version published
Weekly downloads
89
decreased by-40.27%
Maintainers
1
Install size
30.3 kB
Created
Weekly downloads
 

Readme

Source

React Number Formatted with Commas

It's just an input form with commas that returns the number (as a string sans commas) to the supplied onChange handler.

Installation

yarn add react-number-format-with-commas

or

npm install react-number-format-with-commas

Usage

import { InputNumberCommas } from 'react-number-format-with-commas';

const onChange: React.ChangeEventHandler<HTMLInputElement> = useCallback(
  (e) => setValue(e.target.value), // e.target.value is a string sans commas here
  [setValue]
);

<InputNumberCommas onChange={onChange} />;

Keywords

FAQs

Last updated on 08 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc