mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-23 23:18:36 +08:00
e7aa014c31
* docs: init * chore: all types * docs: faq * chore: fix lint
12 lines
309 B
TypeScript
12 lines
309 B
TypeScript
import React from 'react';
|
|
import { Checkbox } from 'antd';
|
|
import type { CheckboxProps } from 'antd';
|
|
|
|
const onChange: CheckboxProps['onChange'] = (e) => {
|
|
console.log(`checked = ${e.target.checked}`);
|
|
};
|
|
|
|
const App: React.FC = () => <Checkbox onChange={onChange}>Checkbox</Checkbox>;
|
|
|
|
export default App;
|