arrow_backBACK TO DRILLS
Blue Belt - Mediumrules-of-hooksPREMIUM
Calling useState Inside A Conditional Block
Why does React forbid calling Hooks inside conditions like if (cond) { useState(...) }?
Why does React forbid calling Hooks inside conditions like if (cond) { useState(...) }?