Course lesson

Use React useEffect hook to see how many times component mounts and unmounts

In this lesson we are going to learn how to use useEffect hook from React 16.7 to be able to create a custom hook which allows us to see how often the component mounts and unmounts.

Duration
2 min
Access
Free
Transcript
Available

In this lesson we are going to learn how to use useEffect hook from React 16.7 to be able to create a custom hook which allows us to see how often the component mounts and unmounts.

Later, we can reuse it in other components and improve app performance by diving deep into how many times our components are mounted and/or unmounted.