• +91 9723535972
  • info@interviewmaterial.com

ReactJS Interview Questions and Answers

Related Subjects

Question - 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:

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

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners