Global vs Local Modals - it is a great architectural question that you should answer when coding your app.
⏱️Timestamps:
00:00 - z-index stacking issue
00:19 - React Portals
00:27 - Global Modal Architecture Trend
01:08 - Modal's Law
01:22 - Problems with Local Modals
02:10 - Global Modal comparison
02:33 - "Dumb" Implementation
03:09 - "Sophisticated" Implementation
05:05 - Global vs Local Modal
05:18 - Costs of Global Modal Architecture
05:52 - Rendering Problem
06:10 - Context Problem
06:53 - Why Local Modals drawbacks are rly not that bad
08:45 - When Global Modals are actually useful
09:28 - The Rule of Least Power
📖 Further Reading and Acknowledgments:
- Nice Modal React - Announcement: / rethink-modals-managem...
- Nice Modal React - GitHub: github.com/eBay/nice-modal-react
- Elon Musk interview from Everyday Astrounat: • Starbase Tour with Elo...
Негізгі бет Why 95% of Modals should be Local (in React)
Пікірлер: 68