|
|
@ -98,12 +98,10 @@ This method is specified for [iconfont.cn](http://iconfont.cn/). |
|
|
|
|
|
|
|
```js |
|
|
|
const MyIcon = Icon.createFromIconfontCN({ |
|
|
|
namespace: 'foo', // identifier |
|
|
|
scriptUrl: 'at.alicdn.com/t/font_8d5l8fzk5b87iudi', // generated by iconfont.cn |
|
|
|
prefix: 'icon-', |
|
|
|
scriptUrl: '//at.alicdn.com/t/font_8d5l8fzk5b87iudi.js', // generated by iconfont.cn |
|
|
|
}); |
|
|
|
|
|
|
|
ReactDOM.render(<MyIcon type="example" />, mountedNode); |
|
|
|
ReactDOM.render(<MyIcon type="icon-example" />, mountedNode); |
|
|
|
``` |
|
|
|
|
|
|
|
It create a component that uses SVG sprites in essence. |
|
|
|