iconfont-plus
v0.0.1
Published
a react component for icons of iconfont.cn
Downloads
4
Readme
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
<script src="./iconfont.js"></script>
- use
import React, { Component } from 'react'
import Icon from 'iconfont-plus'
class App extends Component {
render() {
return <Icon code="pen" />
}
}
export default App
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