
Thinking in React
The React Show
00:00
How to Break a Button Into a Component
I look through the code itself for patterns, patterns that are repeated three or more times. Once I identify those patterns, that's when I start actually abstracting things based on the smallest bits of like repeated patterns or code. And this is sort of the critical part that keeps you from getting stuck. You're never like, OK, how do I think people are going to use this and other ways in the future? You never think about that. It's premature design optimization leads to bad design.
Transcript
Play full episode