cloudflare / react-gateway

Render React DOM into a new context (aka "Portal")
BSD 3-Clause "New" or "Revised" License
571 stars 72 forks source link

React 16 brings built-in portal feature #32

Open Fxlr8 opened 7 years ago

Fxlr8 commented 7 years ago

I wonder what is gonna happen to this repo now?

tajo commented 7 years ago

Probably nothing since react-gateway transfers components from React to React (the same tree context). Portals do React -> DOM (new context). So there's a fundamental difference between this library and react-portal.

I am not sure if React v16 internals somehow could interfere with react-gateway but I would say that react-portal (using new official Portal api) is probably a safer bet.

mfrachet commented 6 years ago

@tajo since it only deals with React to React, does it mean that the native side views are recreated and if I would like to move a native component (bridged), it will lost its native context ?