ananthanandanan / react-hooks

A reacthooks reference repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Hooks

What are React Hooks?

React Hooks are basically functions that allow us to use React features without having to write a class. There are different types of hooks, but the most common ones are useState and useEffect. There are other very important hooks, such as useContext, useReducer, useCallback, useMemo, useRef, useImperativeHandle, useLayoutEffect, and useDebugValue. In this project, I am learning practical examples of the most common hooks. As in how to use them and when to use them.

Hooks used

Why this project?

This is basically a project which I am using to learn React Hooks, how it works, and when to use them. This also works as a reference for me to look back at when I need to use a hook.

Setting up the project

  • Clone the project
  • On separate hooks folder, run npm install to install all the dependencies
  • Run npm run dev to start the development server

About

A reacthooks reference repository


Languages

Language:JavaScript 58.8%Language:CSS 33.0%Language:HTML 8.2%