@storybook/react

Storybook for React: Develop React Component in isolation with Hot Reloading.

Storybook for React

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.

Getting Started

cd my-react-app
npx -p @storybook/cli sb init

For more information visit: storybook.js.org


Storybook also comes with a lot of addonsand a great API to customize as you wish. You can also build a static versionof your storybook and deploy it anywhere you want.

Here are some featured storybooks that you can reference to see how Storybook works:

Create React App

Support for Create React Appis handled by @storybook/preset-create-react-app.

This preset enables support for all Create React App features, including Sass/SCSS and TypeScript.

Typescript

@storybook/reactis now exporting its own types to use with Typescript. You don't need to have @types/storybook__reactinstalled anymore if it was your case. But you probably also need to use types from @types/node @types/react.

Docs

HomePage

https://github.com/storybookjs/storybook/tree/master/app/react

Repository

https://github.com/storybookjs/storybook.git


上一篇:聊一聊 Node.js 错误处理
下一篇:@storybook/addons

相关推荐

官方社区

扫码加入 JavaScript 社区