Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/veritem/useform

Tiny hook that make react forms easy
https://github.com/veritem/useform

Last synced: 3 months ago
JSON representation

Tiny hook that make react forms easy

Awesome Lists containing this project

README

        

### useForm

![npm](https://img.shields.io/npm/v/@veritem/useform)

Tiny hook to use form state in your component.

#### Usage

```ts
import useForm from '@veritem/useform';

export default function App() {
const { handleChange, inputs, clearForm } = useForm({
name: '',
email: '',
password: '',
});

function handleSubmit(e) {
e.preventDefault();
console.log(inputs);
}

return (





Submit


);
}
```

### License

[MIT](https://github.com/veritem/useform/blob/main/LICENSE) Licence © 2022 - present [veritem](https://github.com/veritem)