micro-form
Hyper-minimal form building library for React. Easily hydrate values, validate fields, and handle error states. No magic. <3kb.
Usage
const Form = const Input = const Email = <div> <label htmlFor=name>Email</label> <input name=name value=value type='email' onChange= { } /> </div> const App = <Form> <Input name='name' type='text' initialValue='Eric Bailey' validate= val !== '' label='Name' /> <Email /> </Form>
Dependencies
- microstate - Co-located & composable state management for React by @estrattonbailey.
MIT License