Hi Community,
I found the response time is so long for ModalDialog (about 10 seconds for onClose event). Anyone knows how to improve the speed?
const App = () => {
const [isOpen, setOpen] = useState(false);
return (
<Fragment>
<Button text="Show modal" onClick={() => setOpen(true)} />
{isOpen && (
<ModalDialog header="My modal dialog" onClose={() => setOpen(false)}>
<Text>Hello there!</Text>
</ModalDialog>
)}
</Fragment>
);
};
Thanks,
YY1