In this lesson we'll explore how to create
useEffect call, and listen to the window for mouse movement. We'll learn about cleaning up our effects, and how to pass an empty array into the second argument of our effect to create a componentDidMount like effect. Finally we'll trigger a mount/unmount to show effects getting cleaned up correctly.
Liked this content?
Get notified more about React!
No Spam! We Promise!