What are the rules that must be followed while using React Hooks?

Answer

There are 2 rules which must be followed while you code with Hooks:

1) React Hooks must be called only at the top level.
It is not allowed to call them inside the nested functions, loops, or conditions.
2) It is allowed to call the Hooks only from the React Function Components.

All react js Questions

Ask your interview questions on react-js

Write Your comment or Questions if you want the answers on react-js from react-js Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---