Software Unscripted cover image

React Hooks Design Review

Software Unscripted

CHAPTER

The Importance of Generalizing Patterns

The more sources of global state you have as inputs to a thing the harder it's going to be to maintain. Having friction around that implicitly discourages that and sort of nudges you towards finding a different way to solve those problems is by default a healthy thing in my mind. So what would be an example of generalizing one of those? A class component that you know subscribed to the or had a component will update that read in the new props, then set the document title to first name plus face plus last name for instance.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner