https://github.com/veritem/useform
Tiny hook that make react forms easy
https://github.com/veritem/useform
Last synced: 4 days 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 (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T20:33:18.000Z (over 2 years ago)
- Last Synced: 2025-04-06T05:39:26.439Z (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

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)