Been wanting to make something like this with React.createPortal.
We usually think of portals for different parts of the same doc, but it works across windows too 😮
Wouldn't have to think about different windows to communicate, just pass props!
(Cool stuff 😄)
Conversation
Replying to
Thanks Ryan! Didn't know React.createPortal worked across windows, I'll definitely give it a try!
Replying to
Yep!
createPortal(
reactElement,
childWindow.document.getElementById('root')
)
1
2
20


