Build Forms & Manage Their State in React.
Features
-
Simple APIs to use
-
It supports nested & array fields
-
It supports form validation
-
TypeScript support
-
Render optimized
Installation
# With npm
$ npm install @open-tech-world/react-form
# With yarn
$ yarn add @open-tech-world/react-form
Usage
import { Form, Field } from '@open-tech-world/react-form';
export default function App() {
return (
<Form
onSubmit={(values) => {
console.log(values);
}}
>
<Field name="field1" />
{/* Other fields... */}
<button type="submit">Submit</button>
</Form>
);
}
Documentation
Please read the complete documentation at: https://react-form.pages.dev/
License
Copyright (c) Thanga Ganapathy (MIT License).