🏝 React Islands

...with global context providers! ✨

Demo of a React app mounted to a virtual root with its children being rendered by portals and attached to their appropriate DOM elements.

This allows the use of global context providers while still using the "Islands" architecture pattern.

Granted, it's an old pattern but it's still used by a lot of (mostly older) projects.

⚠️
Untested. Still need to complete some profiling around the implications of using portals this way.

🌊 Just a regular DOM element