import React from 'react'; import { Button, Spin } from 'antd'; const App: React.FC = () => { const [spinning, setSpinning] = React.useState(false); const showLoader = () => { setSpinning(true); setTimeout(() => { setSpinning(false); }, 3000); }; return ( <> ); }; export default App;