Oct 10, 2022
does this just mean you're not supposed to declare a hook within a loop or nested function? it's still permissable to set a value. like you could call setFirstName inside a loop, just not [] = useState("value")?
does this just mean you're not supposed to declare a hook within a loop or nested function? it's still permissable to set a value. like you could call setFirstName inside a loop, just not [] = useState("value")?
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app
Software developer Tata Consultancy Services. React, Rails, and Java. Former content editor for @Quora and @inversedotcom. I live in Chicago, Illinois.