2.0.1 • Published 4 years ago

use-input-react v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

useInput

Simple hook to avoid re-writting onChange handler for input again and again..

Usage

 $ yarn add use-input-react
import useInput from 'use-input-react';

const App = () => {
  const { value, handleChange } = useInput('');

  return <input value={value} onChange={handleChange} />;
};

export default App;