I've recently started using react and so far I'm enjoying it a lot.
However I'm struggling with the documentation.
I've seen some mentions of unstable_renderSubtreeIntoContainer
/ renderSubtreeIntoContainer
mentioned here (github).
In which context would I use this? How would I use it?
Thanks a lot in advance!
One of the use cases is "portals" - when you need to render a component outside the react app, but still control it as usual. For example - https://github.com/tajo/react-portal/blob/master/lib/portal.js#L135
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With