On the Part-1 of this series Storybook : develop React components in isolation | Part-1 , we talked about how we can setup Storybook and start working for our awesome UI-components Library.
Today we will see how we can create our first UI component and add it to Storybook. We will also see how we can see variations for the same component.
I will remove the welcome file
src/stories/0-Welcome.stories.js which was created by the tool. Now our app structure looks like below-
Let’s create a new component inside