News for hackers. Stuff that matters.
Re:Speeding up Unreal Editor launch by not spawning 38000 to... by jitl on Sunday September 07, 2025 @11:58PM (#45164508)
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?...

Re:Speeding up Unreal Editor launch by not spawning 38000 to... by chamomeal on Monday September 08, 2025 @11:14AM (#45169343)
awesome thanks!!

Ok it all makes sense now. I’d forgotten about useLayoutEffect. Haven’t had to write much react recently.