mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 04:36:19 +08:00
339 B
339 B
order | title | ||||
---|---|---|---|---|---|
0 |
|
zh-CN
简单的 checkbox。
en-US
Basic usage of checkbox.
import { Checkbox } from 'antd';
function onChange(e) {
console.log(`checked = ${e.target.checked}`);
}
ReactDOM.render(
<Checkbox onChange={onChange}>Checkbox</Checkbox>
, mountNode);