There's more...

You can expand Storybook with add-ons, which allow you to enhance your showcase. Out of the many available ones, we will install three of them and have a quick look at their usage:

  • addon-actions lets you see the data received by event handlers to see what would happen, for example, when the user clicks on a component
  • addon-notes allows you to add notes to a component, to explain how it works or to give insights on its usage
  • addon-knobs lets you dynamically tweak a component's props to see how they change
You can read more about add-ons at https://storybook.js.org/addons/introduction/ and take a look at the gallery of available add-ons at https://storybook.js.org/addons/addon-gallery/.

Since add-ons are quite simple, let's ...

Get Modern JavaScript Web Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.