Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/veritem/useform
- Owner: veritem
- License: mit
- Created: 2022-04-17T07:59:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T20:33:18.000Z (almost 2 years ago)
- Last Synced: 2024-10-03T12:51:35.055Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 138 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)