Skip to content

Instantly share code, notes, and snippets.

@ryanseddon
Created June 18, 2019 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanseddon/7fee8757a6ae7eee52e51ae5f1c990a3 to your computer and use it in GitHub Desktop.
Save ryanseddon/7fee8757a6ae7eee52e51ae5f1c990a3 to your computer and use it in GitHub Desktop.
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