Integrate Storybook in a Next.js Application
Offered By: egghead.io
Course Description
Overview
Storybook is a tool for UI development. It makes development faster and easier by isolating components. This allows you to work on one component at a time. You can develop entire UIs without needing to start up a complex dev stack, force specific data into your database.
In this course, Michael Chan will teach you how to integrate Storybook 6.3 with Next.js 11 so that you can flawlessly build UIs.
The course will kick off by taking the default Next.js page and turning it into a Story. You will then learn how to leverage Story Args, configure the next/image component to be unoptimized, and mock server workers with MSW inside Storybook.
In this course, Michael Chan will teach you how to integrate Storybook 6.3 with Next.js 11 so that you can flawlessly build UIs.
The course will kick off by taking the default Next.js page and turning it into a Story. You will then learn how to leverage Story Args, configure the next/image component to be unoptimized, and mock server workers with MSW inside Storybook.
Syllabus
- Initialize Storybook in a Next.js Project with Webpack 5 Builder
- Create Stories for Next.js Pages
- Import Global Stylesheets for all Stories in preview.js
- Add Controls to Next.js Page Props with Story Args
- Configure next/image Component to be Unoptimized
- Integrate MSW and Storybook
- Mock getServerSideProps and getStaticProps Request with MSW and Storybook Loaders
Taught by
Michael Chan
Related Courses
Software as a ServiceUniversity of California, Berkeley via Coursera Intro to Computer Science
University of Virginia via Udacity Web Development
Udacity Software Engineering for SaaS
University of California, Berkeley via Coursera CS50's Introduction to Computer Science
Harvard University via edX