Install the component dependency:
Include a React component in your project:
Positioning with the component
There are several position-specific components for adjusting the relative positioning of things like
Tooltips around target elements.
Sometimes it's difficult to accurately position relative to another element on the page. Perhaps the surrounding markup and styles were not designed to accommodate an inserted
Tooltip. Or perhaps there's a parent container that's
position: relative. Both of these would be good cases for rendering through a React Portal. The component can take care of that for you. You just supply another independent DOM node elsewhere in your document.
/js part of the utility.