import React, { useState } from 'react'; import { Image } from 'antd'; const App: React.FC = () => { const [visible, setVisible] = useState(false); return ( <> setVisible(true)} />
setVisible(vis) }}>
); }; export default App;