iconfont-plus
a react component for icons of iconfont.cn
Use
- Install
npm i iconfont-plus
- upload your svg to iconfont.cn
- download your iconfont's zip
- add zip/iconfont.js for your project
- use
{ return <Icon code="pen" /> }
how to upload?
Dev
git clone https://github.com/ThaddeusJiang/iconfont-plus.git && cd $_
npm i
npm run build
npm link
cd example
npm link iconfont-plus
yarn
yarn start
Deploy
npm run publish