Input Value Save

React hook for creating input values

Project README

@rehooks/input-value

React hook for creating input values

Note: This is using the new React Hooks API Proposal which is subject to change until React 16.7 final.

You'll need to install react, react-dom, etc at ^16.7.0-alpha.0

Install

yarn add @rehooks/input-value

Usage

import useInputValue from '@rehooks/input-value';

function MyComponent() {
  let name = useInputValue('Jamie');
  // name = { value: 'Jamie', onChange: [Function] }
  return <input {...name}/>;
}
Open Source Agenda is not affiliated with "Input Value" Project. README Source: rehooks/input-value
Stars
112
Open Issues
10
Last Commit
2 years ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating