mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-05 01:19:45 +08:00
12 lines
321 B
TypeScript
12 lines
321 B
TypeScript
|
import React from 'react';
|
||
|
import { Checkbox } from 'antd';
|
||
|
import type { CheckboxChangeEvent } from 'antd/es/checkbox';
|
||
|
|
||
|
const onChange = (e: CheckboxChangeEvent) => {
|
||
|
console.log(`checked = ${e.target.checked}`);
|
||
|
};
|
||
|
|
||
|
const App: React.FC = () => <Checkbox onChange={onChange}>Checkbox</Checkbox>;
|
||
|
|
||
|
export default App;
|