ReactComponent
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 (react-scripts@2.0.0+) feature
Coffee Addict