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