react-styleguidist

How to add examples a component with dependencies in react-styleguidist

时间秒杀一切 提交于 2019-12-22 10:44:10
问题 I would like to document a ButtonGroup component rendering Button components within it using `react-styleguidist'. I have a styleguidist webpack config which looks like this: module.exports = { module: { rules: [ { test: /\.jsx?$/, use: [ { loader: 'babel-loader' } ], exclude: /node_modules/ } ] }, devtool: 'cheap-module-eval-source-map' } I know that I dont need to define commonly used loaders and plugins because styleguidist already adds them internally Inside the src/components/ , the