Reactcomponente

import { ReactComponent as SVGIcon } from '../assets/someIcon.svg

function App() {
  return (
    <div>
    	/* SVGIcon is a React Component */
    	<SVGIcon />
    </div>
   );
}
// 'ReactComponent' is a Create React App ([email protected]+) feature
Coffee Addict