ant-design/components/space/demo/debug.md
MadCcc 6776bb8916
docs: demo support react18 (#34843)
* docs: update demo

* chore: add script

* test: fix demo test

* docs: convert demos

* chore: move script

* test: remove react-dom import

* chore: update deps

* docs: update riddle js

* test: fix image test

* docs: fix riddle demo
2022-04-03 23:27:45 +08:00

42 lines
654 B
Markdown

---
order: 99
title:
zh-CN: 多样的 Child
en-US: Diverse Child
debug: true
---
## zh-CN
Debug usage
## en-US
Debug usage
```jsx
import { Space, Button, Popconfirm } from 'antd';
export default () => (
<Space>
<>
Button
<Button>Button</Button>
</>
Button
<Popconfirm title="Are you sure delete this task?" okText="Yes" cancelText="No">
<Button>Delete</Button>
</Popconfirm>
<Popconfirm title="Are you sure delete this task?" okText="Yes" cancelText="No">
<Button disabled>Delete</Button>
</Popconfirm>
{null}
{false}
{1}
Button
{null}
{undefined}
</Space>
);
```