React
Introduction to React Hooks - useEffect()

Utilizing Dependencies

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

Learn about another feature of useEffect.

useEffect can take on a second argument, which is an array of dependencies. React will keep track of the dependencies and only call your effect if a dependency changes.

You can view this example on Stack Blitz

 

I finished! On to the next chapter