Closed leosin closed 3 years ago
Hi, you could create an index.js
file in your SVG folder:
import Svg1 from './1.svg'
import Svg2 from './2.svg'
export default { Svg1, Svg2 }
Then you can import them like this:
import { Svg1, Svg2 } from './svg-folder'
Or all at once:
import * as svgs from './svg-folder'
I have multiple svgs that need to import, how can I do it all at once