Hooked-Form
🌍 Installation
yarn
yarn add hooked-form
npm
npm i --save hooked-form
UMD
dev:
🎨 Example
import React from 'react';import HookedForm useField from 'hooked-form'; const StringField = fieldId label const onChange touched error value = ; const onInput = React; return <label> label + ' ' <input = = /> touched && error && <div>error</div> </label> ;; const App = return <HookedForm = = = > <h3>Hooked Form</h3> <StringField ="Name:" ="name" /> <input ="submit" ="Submit" /> </HookedForm> ;; ;
💿 Modern build
This library offers a modern build (ES2015 output), this is smaller and parses faster in the browser. So if you don't plan to target older browsers feel free to use this.
Webpack
"resolve":
Parcel
"alias":
📢 Credits
😍Contributors
Thanks goes to these wonderful people (emoji key):
Laurens Lavaert 💻 |
Jovi De Croock 🚇 ⚠️ 👀 📖 💻 |
Jonathan Callewaert 🐛 |
Andrew Rempe 💻 |
Corentin Leruth 💻 |
Pavel Ravits 🐛 |
Tegan Churchill 🐛 |
This project follows the all-contributors specification. Contributions of any kind welcome!