This is a render prop, the component returned from this function will be Tether's target. One argument, ref, is passed into this function. This is a ref that must be attached to the highest possible DOM node in the tree. If this is not done the element will not render.
renderElement: PropTypes.func
This is a render prop, the component returned from this function will be Tether's element, that will be moved. If no component is returned, the target will still render, but with no element tethered. One argument, ref, is passed into this function. This is a ref that must be attached to the highest possible DOM node in the tree. If this is not done the element will not render.
renderElementTag: PropTypes.string
The tag that is used to render the Tether element, defaults to div.
renderElementTo: PropTypes.string
Where in the DOM the Tether element is appended. Passes in any valid selector to document.querySelector. Defaults to document.body.
Tether requires this element to be position: static;, otherwise it will default to document.body. See this example for more information.
Previous versions of react-tether used children to render the target and component, using children will now throw an error. Please use renderTarget and renderElement instead
Imperative API
The following methods are exposed on the component instance: