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.