preactjs / preact-compat

ATTENTION: The React compatibility layer for Preact has moved to the main preact repo.
http://npm.im/preact-compat
MIT License
949 stars 148 forks source link

Implement createPortal(). Fixes #452. #486

Closed developit closed 6 years ago

developit commented 6 years ago

Needs a test or two.

Note: this does not implement event bubbling redirection, since doing so would be rather difficult in Preact.

developit commented 6 years ago

Ooooh you're right. That's a killer Preact hack ;)

@lukeed

screen shot 2018-07-11 at 7 51 38 pm
lukeed commented 6 years ago

tumblr_mezprb2brl1rxa4z0

andersontr15 commented 6 years ago

Can't see this in ^3.18.0 under src/index.js. Am I missing something?

lukeed commented 6 years ago

Looks like hasn't been published yet

maka-io commented 6 years ago

Any minute?

developit commented 6 years ago

It's in 3.18.2.

doxiaodong commented 6 years ago

https://github.com/developit/preact-compat/issues/494