mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-27 13:46:18 +10:00
250 B
250 B
简单
- order: 0
最简单的用法。
import { Switch } from 'antd';
function onChange(checked){
console.log('switch to ' + checked);
}
ReactDOM.render(<Switch defaultChecked={false} onChange={onChange} />,
mountNode);