mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
12 lines
307 B
TypeScript
12 lines
307 B
TypeScript
|
import React from 'react';
|
||
|
import { QRCode, Space } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<Space wrap>
|
||
|
<QRCode value="https://ant.design/" status="loading" />
|
||
|
<QRCode value="https://ant.design/" status="expired" onRefresh={() => console.log('refresh')} />
|
||
|
</Space>
|
||
|
);
|
||
|
|
||
|
export default App;
|