John Wolfe
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")?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

John Wolfe
John Wolfe

Written by John Wolfe

Software developer Tata Consultancy Services. React, Rails, and Java. Former content editor for @Quora and @inversedotcom. I live in Chicago, Illinois.

No responses yet

Write a response