Let's explore some more Nx plugins by generating and running a storybook configuration for our shared store header.
- Explore other Nx plugins to create a storybook configuration
App Screenshot
No change in how the app looks!-
yarn add @nx/storybook
ornpm i -S @nx/storybook
-
Use the
@nx/react:storybook-configuration
generator to generate a storybook configuration for thestore-ui-shared
project⚠️ Answer YES to all questions -
Serve storybook!
🐳 Hint
nx storybook store-ui-shared
-
Start typing in different titles and see how they appear in the header
<img src="../assets/storybook.gif" width="300" alt="the header component running in storybook">
-
Inspect what changed from the last time you committed, then commit your changes
🎓 If you get stuck, check out the solution