|
|
|
|
|
by crubier
1739 days ago
|
|
Yes but my point is that “components interacting with each others” is really just the implementation of another component higher up in the hierarchy. E.g, the interaction between the submit button and the email input box is just the behavior of the whole form component. In react at least, your app is a component, so literally all the logic of your app is in a component in the end. And you can rest this component in storybook. So really there is no limit to what you can test in storybook in that sense. |
|
It's not "just another component up in the hierarchy". If your components are truly composable, you don't need to create another "component" to be able to use them. But you do need to show how they can be used together.
> And you can rest this component in storybook. So really there is no limit to what you can test in storybook in that sense.
And yet, I keep seeing "components in isolation" and all examples (and all storybooks I've seen) have little to no examples of how these isolated components are used together.