From 60bf87d24b921eafea25a2291dcff56a1d0baf26 Mon Sep 17 00:00:00 2001 From: Sagir Khan Date: Tue, 13 Nov 2018 16:19:41 +0530 Subject: [PATCH] docs: Simplify installing Storybook with npx 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/ --- docusaurus/docs/developing-components-in-isolation.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docusaurus/docs/developing-components-in-isolation.md b/docusaurus/docs/developing-components-in-isolation.md index e96085bb35e..601ccd4896c 100644 --- a/docusaurus/docs/developing-components-in-isolation.md +++ b/docusaurus/docs/developing-components-in-isolation.md @@ -22,16 +22,10 @@ You can also deploy your Storybook or style guide as a static app. This way, eve 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. -First, install the following npm package globally: +Run the following command inside your app’s directory: ```sh -npm install -g @storybook/cli -``` - -Then, run the following command inside your app’s directory: - -```sh -sb init +npx -p @storybook/cli sb init ``` After that, follow the instructions on the screen.