mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-03 00:09:39 +08:00
265 B
265 B
order | title |
---|---|
0 | 基本用法 |
简单的 checkbox。
import { Checkbox } from 'antd';
function onChange(e) {
console.log(`checked = ${e.target.checked}`);
}
ReactDOM.render(
<Checkbox onChange={onChange}>Checkbox</Checkbox>
, mountNode);