Write a component that starts an interval when mounted and increments a counter every second. Clean up the interval when the component unmounts.
Click Run to test your code