HomeToolsAbout a20k

Hooks Basics

How to use it

You can only call hooks at the top level of your component or your own hooks

  • You can’t call it inside loops or conditions

If you need to call the hook inside a loop, you have to extract a new component and move the state into it

© VincentVanKoh