react svg as img src code example
Example: importing svg into react
import React from 'react';
import { ReactComponent as BrandIcon } from "./assets/brand-icon.svg";
export default function(){
return(
<div>
<BrandIcon />
</div>
);
}