index.js 285 Bytes
Newer Older
zhanghaozhe committed
1
import React, { PureComponent } from 'react'
baiguangyao committed
2
import './tag.scss'
zhanghaozhe committed
3
export default class Tag extends PureComponent {
baiguangyao committed
4 5
    render() {
        return (
xuzhenghua committed
6
            <span className={this.props.name} {...this.props}>
baiguangyao committed
7 8 9 10 11
                {this.props.children}
            </span>
        )
    }
}