Open mattkime opened 5 years ago
I think it would be nice to use an svg loader for a couple of reasons -
1) Reference svgs via import statements 2) Uniform processing of svg content, transformed into react components 3) SVG compression
https://github.com/boopathi/react-svg-loader/tree/master/packages/react-svg-loader#usage
import Image2 from './image1.svg'; // and use it like any other React Component <Image1 width={50} height={50}/>
Is this still valid? I can see svg's included and loaded all over kibana.
I think it would be nice to use an svg loader for a couple of reasons -
1) Reference svgs via import statements 2) Uniform processing of svg content, transformed into react components 3) SVG compression
https://github.com/boopathi/react-svg-loader/tree/master/packages/react-svg-loader#usage