Kyle Shevlin's Newsletter

Subscribe
Archives
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:
Website X
This email brought to you by Buttondown, the easiest way to start and grow your newsletter.