2 ms·
Yes, that would be awesome! I wonder how they render the components - I see that the the component previews [1] are rendered inside an iframe, maybe they rende
by rkwz 6y ago
Yes, that would be awesome!
I wonder how they render the components - I see that the the component previews [1] are rendered inside an iframe, maybe they render the component to string and insert it into an iframe? If so, should be straightforward to implement if the wasm frameworks support render-to-string or equivalent apis.
[1] https://5d28eb5ee163f6002046d6fb-paaagcevde.chromatic.com/?path=/story/components-brand--without-brand-link https://5d28eb5ee163f6002046d6fb-paaagcevde.chromatic.com/?p...
- ghengeveld 6y agoHere's how to add a new framework: https://storybook.js.org/docs/react/api/new-frameworks https://storybook.js.org/docs/react/api/new-frameworks