ant-design/components/rate/index.jsx

15 lines
302 B
React
Raw Normal View History

2016-03-30 13:20:03 +08:00
import React, { PropTypes } from 'react';
import RcRate from 'rc-rate';
2016-03-31 14:43:38 +08:00
export default class Rate extends React.Component {
2016-03-30 13:20:03 +08:00
static propTypes = {
prefixCls: PropTypes.string,
};
2016-03-31 14:43:38 +08:00
static defaultProps = {
2016-03-30 13:20:03 +08:00
prefixCls: 'ant-rate',
};
render() {
return <RcRate {...this.props} />;
}
}