import React, { useState } from 'react'; import { Alert, Spin, Switch } from 'antd'; const App: React.FC = () => { const [loading, setLoading] = useState(false); const toggle = (checked: boolean) => { setLoading(checked); }; const container = ( ); return (
{container}
Loading stateļ¼š
); }; export default App;