Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rehooks/input-value
React hook for creating input values
https://github.com/rehooks/input-value
forms hooks input react value
Last synced: about 2 months ago
JSON representation
React hook for creating input values
- Host: GitHub
- URL: https://github.com/rehooks/input-value
- Owner: rehooks
- License: mit
- Created: 2018-10-25T18:13:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-01T02:37:56.000Z (over 3 years ago)
- Last Synced: 2024-04-26T21:20:27.072Z (8 months ago)
- Topics: forms, hooks, input, react, value
- Language: JavaScript
- Homepage:
- Size: 776 KB
- Stars: 112
- Watchers: 4
- Forks: 7
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- fucking-awesome-react-hooks - `@rehooks/input-value`
- awesome-react-hooks-cn - `@rehooks/input-value`
- awesome-react-hooks - `@rehooks/input-value`
- awesome-react-hooks - `@rehooks/input-value`
README
# `@rehooks/input-value`
> React hook for creating input values
> **Note:** This is using the new [React Hooks API Proposal](https://reactjs.org/docs/hooks-intro.html)
> 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
```sh
yarn add @rehooks/input-value
```## Usage
```js
import useInputValue from '@rehooks/input-value';function MyComponent() {
let name = useInputValue('Jamie');
// name = { value: 'Jamie', onChange: [Function] }
return ;
}
```