storybook addon react context:管理React上下文值 源码
React上下文插件 安装 yarn add storybook-addon-react-context --dev 添加到.storybook / addons.js import 'storybook-addon-react-context/dist/register' ; 将addDecorator添加到.storybook / config.js import { addDecorator } from '@storybook/react' ; import { withContextProvider } from 'storybook-addon-react-context' ;
文件列表
storybook-addon-react-context-master.zip
(预估有个23文件)
storybook-addon-react-context-master
example
Context.ts
166B
index.stories.tsx
219B
Demo.tsx
145B
.storybook
addons.ts
27B
webpack.config.js
272B
config.ts
704B
package.json
2KB
暂无评论