Skip to content

storybook cheatsheet

peterchang edited this page Jul 7, 2017 · 2 revisions

It is an example of setting up env and first component dev :

Install

$ npm i -g @storybook/cli
$ cd my-react-app
$ getstorybook

Run

$ npm i --save-dev @storybook/react
$ npm run storybook

open browser localhost:6006

storybook_example

Troubleshooting

sh: start-storybook: command not found

Issue on git/storybook

sh: start-storybook: command not found
npm ERR! file sh

solution

$ npm i --save-dev @storybook/react
$ npm run storybook

Git commit

https://github.com/wahengchang/react-redux-boilerplate/commit/aa2f4d6fd0ce55525bf471904eb82683a3d5d9a6

Reference