DEV Community

Tetragius
Tetragius

Posted on

Simple tooltips on hooks

<Component ref={useTooltip('tooltip')}>Test content</Component>

This method allows you to create tooltips close to pure html

<div title="message">example</div>

instead of using complex wrappers like

<Tooltip content={'message'}>
    <div>example</div>
</Tooltip>

or etc.

Top comments (0)