use-controlled-form
Create simple controlled React forms, using hooks ⚓, without all the fluff!
🚨 use-controlled-form
requires React >= 16.8 🚨
Installation
Install with NPM:
npm i use-controlled-form
Install with Yarn:
yarn add use-controlled-form
Basic Usage
; { const fields onSubmit = ; return <form onSubmit=onSubmit> <input ...fieldsusername /> <input type="password" ...fieldspassword /> <button type="submit">Login</button> </form> ;} ;