I usually conditionally render my modals and it works fine with the Modal component, but the animation gets disabled since the modal itself is either being rendered or not. Is there a technique or a way to keep the modal open/close animation?
const [open, setOpen] = useState(false)
return (
<>
{open && (
<Modal open={open} .../>
)}
</>
)