Making Custom Stories
Learn how to make custom stories and see the changes being reflected in the Storybook.
We'll cover the following...
Custom stories in Storybook
To put in our own components, we can create a new story collection by adding a new file to the src/stories/
directory, which we call collatz.stories.js
. The new file begins by importing the components to be used. Each file creates one grouping. That grouping is defined with an export default
command that names the component and gives the group a title. Next, one or more stories are given as the export of a function that ...