Repo
Adding to actual DOM
React Suspense React 16.6 added a <Suspense> component that lets you
"wait" for some code to load and declaratively specify a loading state
(like a spinner) while we're waiting:
Portals
https://reactjs.org/docs/portals.html
React Portals provide a first-class way to render children
into a DOM node that exists outside the DOM hierarchy of the parent
component.
https://reactjs.org/docs/concurrent-mode-suspense.html