Menu
My Site Logo
Learning ResourcesBlogsAbout Me
My Site Logo
  • Learning Resources
  • Blogs
  • About Me
  • Introduction
  • Javascript
    • Index
    • Modules
      • Module 1: Basics
      • Module 2: Object
      • Module 3: Data Types
      • Module 4: Function
      • Module 5: Prototype
      • Module 6: Class
      • Module 7: Destructor
      • Module 9: Promise
      • Module 10: Generator
      • Module 11: Module
      • Module 13: Set and Weakset
      • Module 14: Map and WeakMap
      • Module 16: Async Await
  • React
    • Profiling
    • Hooks
      • Introduction
      • Built-in Hooks
        • useState
        • useEffect
        • useContext
        • useMemo
        • useReducer
      • Hooks Rules
  • Interview Hub
    • Javascript
    • Typescript
    • HTML
    • Web & Security
    • Styling CSS
    • DOM & Browser
    • Design Pattern
  • πŸ’Ž Gem Box πŸ’Ž
    • UI Resources
    • Learning Resources
    • Hosting Resources
    • CSS Resources
    • Browser Resources
    • React Resources

Rules of Hooks πŸ“‹

  • Hooks can not be used inside any condition, loops or nested function it has to the at the top-level hooks are unconditionally awesome 😎
  • All the hooks methods are determined by use as a prefix to the method name
  • Hooks can be called only inside the functional component or from custom hooks. Do not call hooks from a regular javascript function
Last updated on 06/07/2020 by Abhin Pai
Previous
Β« useReducer a state Hook βœ‚οΈ
Next
πŸ¦ΈπŸ»β€β™‚οΈ Javascript Questions Β»
Made in ❀️ by Abhin Pai