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