Storybook for React is a UI development environment for your React components. With it, you can visualize different states of your UI components and develop them interactively.
Storybook runs outside of your app. So you can develop UI components in isolation without worrying about app specific dependencies and requirements.
npm i -g @storybook/cli cd my-react-app getstorybook
For more information visit: storybook.js.org
Here are some featured storybooks that you can reference to see how Storybook works:
If you are using Typescript, make sure you have the type definitions installed via
yarn add @types/node @types/react @types/storybook__react --dev.