mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
5bf08faeea
* refactor: rename qrcode to qr-code * test: patch test case * chore: fix Form missing displayName * chore: patch displayName * chore: style path * chore: fix compile
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;
|