MediumConceptReact in depth
Why does an effect that sets state on every render cause an infinite loop?
This answer is part of Pro
58 of 359 Frontend answers are free. A Pro pass opens the rest, including hands-on task steps.
PreviousWhat are the rules of hooks and why do they exist?Next How do you fetch data in an effect without race conditions?