For preact 8 I successfully used preact-portal to render outside my root node. In preactX, I'd like to switch over to the createPortal() API; but it hasn't worked for me in either X or 8.x.
I had enough time today to construct a repo that demonstrates that the portal content does not remove on unmount.
you can run the code under either react or preactX and observe the difference.
https://github.com/MichaelRando/preact-portal-problem
For preact 8 I successfully used preact-portal to render outside my root node. In preactX, I'd like to switch over to the createPortal() API; but it hasn't worked for me in either X or 8.x.
I had enough time today to construct a repo that demonstrates that the portal content does not remove on unmount.
you can run the code under either react or preactX and observe the difference.
https://github.com/MichaelRando/preact-portal-problem