Skip to content

Commit d72256c

Browse files
sagirkiansu
authored andcommitted
docs: Simplify installing Storybook with npx (#5788)
Reduce two-step install to just one step (per the latest storybook docs) Change (i) `npm install -g @storybook/cli` and (ii) `sb init` to `npx -p @storybook/cli sb init` Refs: https://storybook.js.org/basics/quick-start-guide/
1 parent 0c9c97a commit d72256c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

docusaurus/docs/developing-components-in-isolation.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,10 @@ You can also deploy your Storybook or style guide as a static app. This way, eve
2222

2323
Storybook is a development environment for React UI components. It allows you to browse a component library, view the different states of each component, and interactively develop and test components.
2424

25-
First, install the following npm package globally:
25+
Run the following command inside your app’s directory:
2626

2727
```sh
28-
npm install -g @storybook/cli
29-
```
30-
31-
Then, run the following command inside your app’s directory:
32-
33-
```sh
34-
sb init
28+
npx -p @storybook/cli sb init
3529
```
3630

3731
After that, follow the instructions on the screen.

0 commit comments

Comments
 (0)