项目作者: klequis
项目描述 :
Turn ordinary .svg file into a JSX component and style with CSS
高级语言: JavaScript
项目地址: git://github.com/klequis/change-svg-color-with-css-ex.git
Making an SVG into a Component & Styling with CSS
I don’t really know much about SVG markup. However, it is fairly easy to take a SVG and turn it into a React component.
src/elk.svg is the original SVG file
src/Elk.jsx is the component