This plugin aims to have the same CRA useful behaviour on Storybook regarding SVG.
npm install storybook-svgr-react-componentFor using it:
1. run npm install -D storybook-svgr-react-component or yarn add -D storybook-svgr-react-component.
1.just add the following plugin on your ./storybook/main.js:
``diff
module.exports = {
addons: [
+ 'storybook-svgr-react-component',
]
}
``