ant-design/components/switch/index.jsx
ustccjw b34269a6b1 use es6 module import/export
convert var to const

fix bug

fix bug

fix for jshint

fix import
2015-07-24 11:22:49 +08:00

14 lines
231 B
JavaScript

import Switch from 'rc-switch';
import React from 'react';
export default React.createClass({
getDefaultProps() {
return {
prefixCls: 'ant-switch'
};
},
render() {
return <Switch {...this.props}/>;
}
});