4 ms·
I’d say the useState hook should receive a name parameter first and not depend on the call order. That way one can do branching, loops etc. This way it feels li
by eknkc 8y ago
I’d say the useState hook should receive a name parameter first and not depend on the call order. That way one can do branching, loops etc. This way it feels like too much magic.
- bnjmn 8y agoYou're not alone! https://github.com/reactjs/rfcs/pull/68#issuecomment-433181520 https://github.com/reactjs/rfcs/pull/68#issuecomment-4331815...