项目作者: 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
创建时间: 2019-01-22T02:57:52Z
项目社区:https://github.com/klequis/change-svg-color-with-css-ex

开源协议:

下载


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