import React from 'react'; import { Input, QRCode, Space } from 'antd'; const App: React.FC = () => { const [text, setText] = React.useState('https://ant.design/'); return ( setText(e.target.value)} /> ); }; export default App;