arrow_backBACK TO DRILLS
Blue Beltrules-of-hooksPREMIUM
Conditional Hook calls and hook ordering
Why does React forbid calling Hooks inside conditions like if (cond) { useState(...) }?
Why does React forbid calling Hooks inside conditions like if (cond) { useState(...) }?