React.createPortal:tada: Big thanks to @doronbrikman for their work on this. In versions where
createPortalisn't available we still fall back to the old method.
require('react-tether').default. See the examples.
.npmignore PR #39
renderElementTo PR #19
Children.toArray instead of
Children.forEach to get individual children
Fixed Tether element props not being re-rendered on change
Added the ability to apply an
style to the wrapper Tether element.
renderElementTo now uses
Add dependency warning for people using old school script tags
Fix ASI issue with document.body PR #12
Fix tethered element not being positioned correctly
All Tether options are now props
renderElementTag prop to specify which DOM tag to use to render the second child to
renderElementTo prop to specify where in the DOM the element should be appended to
position public method from Tether
Bower exposed lib name renamed to
New API accepts a max of two children. First child is used as the target and second child is used as the element that is being tethered.