@uselife/useform
v0.3.0
Published
a React Hooks to maintain form state
Downloads
38
Readme
useForm
React Hook for Form, more simple more power 😌
Installation
npm install @uselife/useform
How to use
import useForm from '@uselife/useform'
function Page({ classes }) {
const [formState, bindField] = useForm({
username: ''
})
return (
<>
<div>{formState.username}</div>
<div>{bindField(<input name="username" />)}</div>
</>
)
}