React Hooks impose a set of strict rules to ensure reliable and predictable behavior in functional components. Violating these rules can break the synchronization between state and the component’s render cycle.
Only Call Hooks at the Top Level 🚀
Only Call Hooks from React Functions ⚛️
Custom Hook Naming Convention 🏷️
Don’t Call Hooks in Class Components 📚
Use the Linter Plugin 🔍