cjd-parkball
Version:
> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用
21 lines (20 loc) • 367 B
Markdown
title: 基本组件
title_en: Base Component
category: 2
展示了一个基本组件的校验用法
```jsx
import { BaseComponent } from 'parkball'
class NewComponent extends BaseComponent {
render() {
return (<div>{this.props.children}</div>)
}
}
ReactDOM.render(
<NewComponent authKey='.件'>
组件内容
</NewComponent>,
mountNode
)
```