Altiore Form
@altiore/form
powerful forms with @altiore/form
русская версия
README.RU.md
Why?
To simplify work with forms
Installation:
npm
npm i @altiore/form -S
yarn
yarn add @altiore/form
Simplest usage
import React, {useCallback} from 'react';
import {Form} from '@altiore/form';
const MyForm = () => {
const handleSubmit = useCallback((values) => {
console.log('form.values is', values);
}, []);
return (
<Form onSubmit={handleSubmit}>
<input name="name" />
<button type="submit">Submit</button>
</Form>
);
};