storybook addon react context:管理React上下文值 源码

mute_18115 33 0 ZIP 2021-02-16 01:02:15

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' ;

用户评论
请输入评论内容
评分:
暂无评论