> React assumes that if you call useState many times, you do it in the same order during every render.
Note they also say:
> We provide a linter plugin to enforce these rules automatically.
Makes me feel a little better.
Note they also say:
> We provide a linter plugin to enforce these rules automatically.
Makes me feel a little better.
Like, if I have two state variables, pass in a name for both, instead of relying on the order being the same.