Created
June 18, 2019 01:34
-
-
Save ryanseddon/7fee8757a6ae7eee52e51ae5f1c990a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tooltipRef = React.useRef(null); | |
const { isVisible, getTooltipProps, getTriggerProps } = useTooltip({ | |
tooltipRef | |
}); | |
// render | |
<div | |
{...getTooltipProps({ | |
ref: tooltipRef | |
})} | |
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment