@uselife/useform
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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>
    </>
  )
}

Package Sidebar

Install

npm i @uselife/useform

Weekly Downloads

14

Version

0.3.0

License

ISC

Unpacked Size

10.5 kB

Total Files

5

Last publish

Collaborators

  • raistlin916
  • oconnercooper