UNPKG

dmx-cli

Version:

scaffold for create component, toolkit, page and so on

22 lines (17 loc) 443 B
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button } from 'antd'; import classNames from 'classnames/bind'; import styles from './style.mod.less'; const cx = classNames.bind(styles); class Comp extends Component { render() { const { text } = this.props; return ( <Button className={cx('btn')} type="primary">{text}</Button> ); } } Comp.propTypes = { }; export default Comp;