comp-footer
v1.0.0
Published
basic react component
Downloads
14
Readme
comp-footer
API
| 属性 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | children | 内嵌子元素 | Any | | | style | 自定义样式 | Object | |
Example
import React from 'react';
import { render } from 'react-dom';
import CompFooter from 'comp-footer';
render(
<CompFooter style={{textAlign: 'center'}}>
<div>Ant Design Admin © 2018 Power by Frend</div>
</CompFooter>,
document.getElementById('app')
);
Develop
$ npm run start
Publish
$ cd ../.. // 返回项目根目录,通过 `lerna` 来构建与发布
$ npm run build
$ npm publish