Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/formitedev/formite

Easy forms with React hooks
https://github.com/formitedev/formite

forms hooks react

Last synced: 3 months ago
JSON representation

Easy forms with React hooks

Awesome Lists containing this project

README

        

# Formite

> Easy forms with React hooks

## Installation

`npm install formite-core formite-html`

or

`yarn add formite-core formite-html`

## Usage

```ts
import { useForm, useInput } from "formite-html"

const handleSubmit = (values: unknown) => {
console.log(values);
};

const SimpleForm = () => {
const form = useForm({ firstName: "", lastName: "" }, handleSubmit);
const { canSubmit, fields, Form, isDirty } = form;
return (



Save

);
};
```

See Storybook for more examples.

## Build

Formite uses a monorepo to build all packages.

Steps:

- Clone the repo
- lerna bootstrap
- lerna run build
- yarn test
- yarn storybook