0.0.0 • Published 3 years ago

use-numeric-value v0.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

use-numeric-value

NPM version NPM downloads NPM license Codecov Travis Bundle size

About

Better state management for number inputs

Demo

Playground – play with library in CodeSandbox

How to Install

First, install the library in your project by npm:

$ npm install use-numeric-value

Or Yarn:

$ yarn add use-numeric-value

Getting Started

• Import hook in React application file:

import { useNumeric } from 'use-numeric-value';

Returned Values

Example

import React from 'react';
import { useNumeric } from 'use-numeric-value';

const App = () => {
  const [value, setValue] = useNumeric();

  return (
    <input type="number" value={value} onChange={} />
  )
}

License

This project is licensed under the MIT License © 2021-present Jakub Biesiada