@datage/react-input
TypeScript icon, indicating that this package has built-in type declarations

0.0.33 • Public • Published

@datage/react-input

Usage

useInputProps

add a value and a onChange handler to inputs

returns an object with this props:

  • path
  • value
  • name
  • onChange
import { useInputProps } from '@datage/react-input'

const [data, updateData] = useState({})
const inputProps = useInputProps(data, updateData)

<input type="text" {...inputProps('name')} />

Readme

Keywords

Package Sidebar

Install

npm i @datage/react-input

Weekly Downloads

11

Version

0.0.33

License

MIT

Unpacked Size

9.67 kB

Total Files

9

Last publish

Collaborators

  • philiplehmann