This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
The dependency array tells React when to re-run your effect by comparing values between renders.
You've completed the free preview. Subscribe to unlock every lesson in every course.