paint-brush
Portals are lit 🔥 by@aswath
384 reads
384 reads

Portals are lit 🔥

by Aswath5mJuly 29th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Recently I was introduced to Reacts' createPortal API, which was nothing short of amazing. Portals provide a way to render children of a react component somewhere else in the DOM, not in the same hierarchy. It can be widely used when a parent component has an overflow: hidden or z-index style, but you need the child to visually "break out" of its container. For example, dialogs, hovercards, and tooltips. The hierarchy is unaltered in the Virtual DOM, so event bubbling will happen with ease.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Portals are lit 🔥
Aswath HackerNoon profile picture
Aswath

Aswath

@aswath

L O A D I N G
. . . comments & more!

About Author

Aswath HackerNoon profile picture
Aswath@aswath

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Freefoto