ReactAdvanced#patterns#dom

What are React portals?

createPortal renders children into a different DOM node while keeping them in the React tree, which solves overflow and z-index problems for modals and tooltips.

Example
return createPortal(<Modal />, document.body);

Related Questions

1
ReactAdvanced#performance

How do you optimise performance in a React app?

Open
2
ReactAdvanced#ssr#seo

What is the difference between client-side and server-side rendering?

Open
3
ReactAdvanced#ssr

What is hydration?

Open