React Portals
react portals let you render a react element in a different place of your real dom while keeping its position in the virtual dom so for example you can make overlays free instead of being nested in 45 divs with their css position & overflows cascading down to them
— dunkin reindeers (@freezydorito) November 4, 2018
react portals let you render a react element in a different place of your real dom while keeping its position in the virtual dom so for example you can make overlays free instead of being nested in 45 divs with their css position & overflows cascading down to them
You can read more about this in the official documentation for React Portals. Not doing a lot of React these days, but this will definitely come in handy. Thanks, Laura!