|
|
|
|
|
by dmitriid
1740 days ago
|
|
So, so many people in the comments saying "good to design components in isolation". Why would design your components in isolation? Do they never interact with each other? Appear next to each other on a page? Participate in a layout? This is my main gripe with Storybook in particular and any design system and design system tool in general: they never consider how components work together and force into a mindset of just documenting separate components complete isolation. |
|
Storybook gives you the framework to run them. Add something like cypress on top and you have the whole testing loop.
Making and updating the components in isolation reduces how much you need to reason about when building highly composable components.
The higher up you go (ie more composition) the less you can do in isolation.
But this is only building, you should design with as full an understanding of the rest of your components. Behaviours need to match, style needs to be consistent.
You don’t build a whole program at once, in the same way you can’t build a whole UI at once. At some point, you focus in on one area.
This because exponentially helpful when you team grows to a size larger than one.