Componentization and Transparent Videos

2024-08-19


Hey friends,

August never quite winds up feeling like SUMMER summer, with as much back-to-school prep and events that cycle up in August, it's more of a mini-September!


Thinking Too Hard

When do you break something into an external component, and when do you leave it colocated?

This week I was working on a very specific feature in a React web app and I started to run up against the upper level of readability for a single component. There were 3 data helper functions and 3 sub-components that existed ONLY for this one specific feature. So, what to do?

After taking a poll of several smart folks (AKA pestering the Viget development chats) the overall sentiment was to leave everything colocated if possible, but with some practical things to try:

THEN if it's STILL too large should we start looking at externalizing some of these components.


Interesting Web Bits


Don't miss what's next. Subscribe to Net Noodlings with Nathan: