DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,673 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Mariusz
Mariusz

Posted on • Updated on

React Tldr; Component Story Format

  • Component stories have no dependence on Storybook, so consuming them is as easy as importing an ES6 module
  • Built int tools to migrate from storiesOf api to CSF without effort
  • Benefits of using:
    • Writing stories is as easy as exporting ES6 functions from your story file in a clean, standard format
    • Component stories are easily consumed anywhere ES6 modules live
    • Component stories don’t need any libraries other than your components.
    • The declarative syntax is isomorphic to higher-level formats like MDX, enabling clean, verifiable transformations.
    • Component stories hide Storybook’s underlying API, giving maintainers flexibility to improve Storybook without breaking any contracts.

Source: https://medium.com/storybookjs/component-story-format-66f4c32366df

Top comments (0)

DEV has this feature:

Settings

Go to your customization settings to nudge your home feed to show content more relevant to your developer experience level. πŸ›