Kyle Shevlin's Newsletter

Archives
Subscribe
May 19, 2020

Using Hooks to Break Apart Component Logic

Hello there! 👋

Recently, I've been building a lot of new features and hooks for work and it's really got my brain gears turning. 🧠⚙️

So many of the concepts that are useful for writing good software in general can be related to and taught by writing React Hooks. I wanted to start with one that I've been doing a lot lately: decoupling my component's logic from its UI.

When done properly, breaking apart the logic and the UI allows me to achieve things like proper encapsulation of a concern, reusability, the ability to contextualize an interface to particular use cases, and more.

I wrote a new blog post where I demonstrate how to do this: Break Out Your Component Logic with Hooks.

Check it out and let me know what you think!

Hope your week is going well and thank you for your time.

Kyle

Don't miss what's next. Subscribe to Kyle Shevlin's Newsletter:
Share this email:
Share on Twitter
Website favicon
X
Powered by Buttondown, the easiest way to start and grow your newsletter.