故事书插件,用于显示React组件的静态标记 安装 npm install --save-dev storybook-react-to-static-markup 组态 添加到.storybook/addons.js import 'storybook-react-to-static-markup/register' 添加到.storybook/config.js import { addDecorator } from '@storybook/react' import { withStaticMarkup } from 'storybook-react-to-static-mark