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' ;
用户评论