DEV Community

Discussion on: We're the core maintainers of Storybook, Ask Us Anything!

Collapse
 
ekafyi profile image
Eka

Thank you for your hard work with Storybook and for doing this AMA!

Have you got any recommendations / example use case of using Storybook to create a single source of truth for same components in multiple language stacks (eg. React and Rails ERB or React and plain HTML)?

Collapse
 
norbertdelangen profile image
Norbert de Langen

Right now you need to run multiple Storybooks if you want multiple frameworks at the same time.

We think that when we're going to work on some performance improvements in the future we can likely make it possible to load components from multiple frameworks in 1 Storybook!

The docs-view I'll be working on in the next few weeks, will definitely help as well to document all sorts of other things besides components!

Collapse
 
shilman profile image
shilman

The current version of Storybook only supports one view layer at a time. So we have @storybook/react @storybook/vue @storybook/angular etc. Norbert prototyped a next-generation architecture that supports multiple view layers at once, so this may get a lot easier in the near future, but it's a pretty big change so we're taking our time to do it right.