useEffect.dev
← Back to lessons

Lesson 7Solving infinite loops when using useEffect

Here is the common problem we want to solve here: my component has side effects, so I use useEffect, but when I run it, it calls external URLs indefinitely or creates an infinite update loop until the browser crashes.