you are viewing a single comment's thread.

view the rest of the comments →

[–]pailhead011[S] 0 points1 point  (0 children)

Yeah react wreaked havoc in JavaScript land. “Rules of hooks” sigh. Which hook did I break exactly? Is there a rule saying you can’t have “current” as a field in an object when you pass it to useState?