Easiest way to add Storybook support to your project.
First install the storybook generator globally.
npm i -g getstorybook
Then go to your project and run:
That's all you've to do.
getstorybook also supports yarn.
If you have installed yarn in your system, it'll detect it and use
yarn instead of
If you don't want to use
npm always you can use the
--use-npm option like this:
For more information, refer React Storybook documentation.