Skip to content

zone-play/umi-sb-antd

Repository files navigation

umi-sb-demo

umi.js + storybook + antd 构建的 React 应用

一、创建 umi 项目

mkdir my-app && cd my-app

yarn create @umijs/umi-app

yarn

yarn start  // 开发

yarn build  // 构建

yarn global add serve // 发布前验证

serve ./dist

二、安装 Storybook

cd my-app

npx sb init

yarn storybook

三、安装 antd

yarn add antd

四、给 Storybook 配置 antd 主题

.storybook/preview.js

import 'antd/dist/antd.css';

文档 docs

About

umi.js + storybook + antd 构建的 React 应用

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published