Portals and Rendering Control
Render outside the DOM hierarchy with portals, build accessible modals, and understand what Strict Mode is really checking.
- Level
- Advanced
- Chapters
- 4
- Exercises
- 1
- Reading time
- 14 min
What you will cover
- 1. What a Portal IsRendering into a different DOM node while staying in the React tree.
- 2. Building an Accessible ModalThe parts a portal does not give you for free.
- 3. Strict ModeWhat the double invocations are checking, and why not to switch it off.
- 4. Recap and Related APIsA short tour of the remaining rendering escape hatches.
Up next after this one: React with TypeScript