This project is a learning exercise focused on creating and using custom React hooks. The goal is to understand the principles behind custom hooks, how they can simplify your code, and how to effectively integrate them into a React application.
This project was created to explore the development of custom hooks in React. Custom hooks allow you to extract and reuse logic across different components, promoting cleaner and more maintainable code.
- Custom Hooks: A collection of reusable custom hooks designed to simplify various tasks in React.
- useFetch Hook: A custom hook to fetch data from two different APIs, managing loading and error states.
- Educational: The primary purpose of this project is to learn and understand how custom hooks work in React.
- Simple Setup: Easy to set up and experiment with your own custom hooks.
To run this project locally, follow these steps:
- Clone the Repository:
git clone https://github.com/RAIZ44/custom-hook.git
- Navigate to the Project Directory:
cd custom-hook
- Install Dependencies:
npm install
- Run the Project:
npm run preview