Storybook SVGR React Componentss
This plugin will add the same CRA useful behaviour on storybook regarding SVG.
For using it:
- run
npm install -D storybook-svgr-react-component
oryarn add -D storybook-svgr-react-component
. 1.just add the following plugin on your./storybook/main.js
:
module.exports = { addons: [+ 'storybook-svgr-react-component', ] }