All important facts about React Hooks……getting started with them!!

Some key reasons behind addition of hooks to React:

  • It’s hard to reuse stateful logic between components.
  • Complex components become hard to understand.
  • Classes confuse both people and machines.(know this pt. in detail…….click here)

Rules of Hooks

  1. Always call Hooks at the top level.
  2. Only call Hooks from React functions

📌 State Hook

example of importing the useState Hook from React:

import React…


What is GPT-3 ??

Whats Amazing !!??


What is Artificial Intelligence(AI)?

Mayank Rajput

Tech enthusiast | Developer | Learner

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store