Leveraging Storybook for Component-Driven Development
summary
Argues that Storybook becomes the development hub for large apps by turning components into living docs and executable examples: stories auto-generate prop docs and copyable code snippets, MSW handlers mock API responses per-story, decorators reproduce global state, and the play API records interactions. Stories import directly into tests with React Testing Library so the same scenarios drive visual accessibility interaction and snapshot tests. Shows how composed stories enable cross-project reuse and easy extraction into a shared internal library with Storybook and MSW.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker background
- 1:48Storybook’s role in component development
- 3:55Best practices for component API design
- 6:44Why use Storybook beyond component libraries
- 7:47Getting started with Storybook
- 8:51Writing stories for components
- 9:56Autogenerated documentation benefits
- 10:39Mocking API calls and global state
- 11:43Interactive stories and play methods
- 12:24Testing components with Storybook
- 13:26Cross-project integration and shared libraries
- 13:46Storybook add-ons and Next.js integration
- 14:07Q&A and contact information
