Comment on Speeding up Unreal Editor launch by not spawning unused tooltipsparentComments−jitl1yFor anyone curious, here's a proof-of-concept of how to implement a <Modal> that manages its own transition out when it's unmounted using just ReactDOM.createPortal and React.useLayoutEffect.https://stackblitz.com/edit/react-modal-with-transition-out?...−chamomeal1yawesome thanks!!Ok it all makes sense now. I’d forgotten about useLayoutEffect. Haven’t had to write much react recently.
Comments
For anyone curious, here's a proof-of-concept of how to implement a <Modal> that manages its own transition out when it's unmounted using just ReactDOM.createPortal and React.useLayoutEffect.
https://stackblitz.com/edit/react-modal-with-transition-out?...
awesome thanks!!
Ok it all makes sense now. I’d forgotten about useLayoutEffect. Haven’t had to write much react recently.