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.