Update November 22nd, 2021: I added a recording of my CascadiaJS on this topic to the end of this post. Enjoy! Recently, I shared this tweet: 🔥 take I haven't fully thought through incoming: Every use of useEffect should be in a custom hook with a damn good name. It's frequently difficult to read & comprehend intention of the code when effects are strewn about. Better to encapsulate and provide c
![useEncapsulation | Kyle Shevlin](https://cdn-ak-scissors.b.st-hatena.com/image/square/170e1580927e9e8e83fe42dcda230e5107435b33/height=288;version=1;width=512/https%3A%2F%2Fkyleshevlin.com%2Fimages%2Fbeard-og-image.jpg)