From the course: Building UI Components with Storybook: Master React Components and UI Design with Storybook for Better Efficiency
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Build a basic sub-component in React
From the course: Building UI Components with Storybook: Master React Components and UI Design with Storybook for Better Efficiency
Build a basic sub-component in React
It's time to start designing this counter component and react with Storybook so back in our text editor if we were developing a counter component We wouldn't be thinking about stories. We just start developing the counter straight up I mean what I would have done is I develop the counter and then if there's this whole issue about reusing the button elsewhere in The application then I work on the button Maybe I'd extract the button afterwards since this is a storybook and we've already thought about the different stories and then and ways that We could build this feature We don't have to start with the counter and then extract the button. I Would argue that you can just start with the smaller bottom level Leafs of the tree of the component tree So we could start with the button counter. What's at the bottom here the button counter so I would start with this So this is going to incorporate this anyway. So this seems like the smallest leaf that we can start building with. And then we can…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Installing and setting up Storybook into your project application from scratch14m 45s
-
(Locked)
Overview of how Storybook is configured with web app projects9m 29s
-
(Locked)
How to build a component in React with Storybook: Visual breakdown10m 44s
-
(Locked)
Build a basic sub-component in React4m 40s
-
(Locked)
How to build a story for React components from scratch6m 36s
-
(Locked)
How to use args in Storybook for multiple dynamic component stories6m 2s
-
(Locked)
How to use argTypes and controls in Storybook to create user-friendly stories5m 28s
-
(Locked)
Automating documentation for web components with Storybook6m 50s
-
(Locked)
Customizing docs and values with Storybook11m 26s
-
(Locked)
Adding component complexity for Storybook arguments9m 8s
-
(Locked)
CSS techniques and Storybook rendering9m 48s
-
(Locked)
What are actions in Storybook and the synthetic base event object?10m 3s
-
(Locked)
Hooking up live React components to Storybook and rendering fundamentals15m 24s
-
(Locked)
Creating stories with mock state and events in Storybook7m 36s
-
(Locked)
Testing interactions and events with React components in Storybook13m 56s
-
(Locked)
-
-
-
-