CRA import svg code example
Example: importing svg into cra
import { ReactComponent as BrandIcon } from "./assets/brand-icon.svg";
export default function(){
return <BrandIcon />
}
import { ReactComponent as BrandIcon } from "./assets/brand-icon.svg";
export default function(){
return <BrandIcon />
}