1.0.5 • Published 4 years ago
svg-wrapper-react v1.0.5
import React from "react";
// will be published before 21 Jan 2021 :) .
import SVGWrapper from "svg-wrapper-react";
// import the svg you want to render
import myLogo from "../images/myLogo.svg";
const MyComp = () => {
return (
// some wrapper/parent component if needed
<someComp>
<SVGWrapper
svgFile={svg}
className="App-logo"
style={{
backgroundColor: "red",
border: "solid 1px",
borderRadius: "10px",
}}
/>
</someComp>
);
};
export default MyComp;