The Enlightened Cleanup

React hook cleanup functions can be beautiful too!

The whole point of this article is to introduce you to a cleanup function that emphasizes the fine details of React hooks.

I’ll be describing a situation that I encounter in almost every React app that I work with, breaking it down into it’s component problems, and providing my favorite solution. This article…