Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.41 KB

File metadata and controls

40 lines (30 loc) · 1.41 KB

Custom Hook Learning Project

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.

Table of Contents

Introduction

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.

Features

  • 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.

Installation

To run this project locally, follow these steps:

  1. Clone the Repository:
    git clone https://github.com/RAIZ44/custom-hook.git
    
  2. Navigate to the Project Directory:
    cd custom-hook
  3. Install Dependencies:
    npm install
  4. Run the Project:
    npm run preview