https://github.com/arrighidante/react-custom-hooks
Custom hooks for React apps
https://github.com/arrighidante/react-custom-hooks
hooks javascript jest-tests react
Last synced: 3 months ago
JSON representation
Custom hooks for React apps
- Host: GitHub
- URL: https://github.com/arrighidante/react-custom-hooks
- Owner: arrighidante
- Created: 2024-03-26T13:50:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-26T14:08:40.000Z (about 1 year ago)
- Last Synced: 2025-01-16T23:44:39.170Z (4 months ago)
- Topics: hooks, javascript, jest-tests, react
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# :books: Custom Hooks Repository
This repository contains a collection of React Custom Hooks that you can use in your projects to speed up your development and keep your code clean and organized.
## :file_folder: Contents
The repository contains the following Custom Hooks:
1. \`useForm\`: For handling forms.
2. \`useFetch\`: For making HTTP requests.
3. \`useCounter\`: For handling counters.
4. \`useToggle\`: For handling boolean states.## :wrench: How to Use
To use any of these Custom Hooks, simply import the Hook you need into your component:
```
import { useForm } from './hooks/useForm';
```Then, you can use the Hook in your component:
```
const [values, handleInputChange, reset] = useForm(initialState);
```## :bulb: Contributing
If you have an idea for a new Custom Hook or an improvement to an existing one, feel free to open an Issue or a Pull Request.