Portals Can Share State Between Windows

Veröffentlicht am: 27 Mai 2024
auf dem Kanal: UI Engineering
17,788
801

How to share state between 2 different windows using React Portals.

⏱️Timestamps:
00:00 - Intro
00:16 - Why Portals exists
00:38 - Sharing State with Portals
01:04 - How does it work
02:38 - Rendering to a new window
02:59 - Portals insight
03:25 - Consequences
03:39 - When it's useful
04:29 - Document Picture in Picture API
05:13 - Important Limitation

📖 Further reading and Acknowledgments:
David Gilbertson's article:   / using-a-react-16-portal-to-do-something-cool  
WICG Picture in Picture Use Cases: https://github.com/WICG/document-pict...
Picture in Picture Support: https://developer.mozilla.org/en-US/d...
StackOverflow benchmark: https://stackoverflow.com/questions/8...
React Query DevTools PR: https://github.com/TanStack/query/pul...


Auf dieser Seite können Sie das Online-Video Portals Can Share State Between Windows mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer UI Engineering 27 Mai 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 17,788 Mal angesehen und es wurde von 801 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!