Re:React 16
by audessuscest on Tuesday September 26, 2017 @01:04PM
(#15340529)
Do you know where to find some usage examples ?
[ Parent
| on HN ]
If you go to the Portals documentation ( https://facebook.github.io/react/docs/portals.html ) you can find some examples throughout.
Both of the CodePen example links on that page are insidiously broken. The demos appear to work, but they don't actually demonstrate the claimed portal functionality at all:
// These two containers are siblings in the DOM
const appContainer = document.getElementById('app-container');
const modalContainer = document.getElementById('app-container');
Note that both variables refer to the same element.
Re:React 16
by danabramov on Tuesday September 26, 2017 @02:02PM
(#15341104)
Sorry, there was so much to do in the release that some issues crept into the new docs. We'll fix them soon. :-)
Fixed now! Thanks for the bug report!