Build a tooltip as a single React component: a button that reveals a small bubble above it when you point at it or tab to it, and hides the bubble when you move away or tab off. It's one boolean of state — but doing it right means the tooltip answers to focus and blur, not just the mouse, so keyboard users get it too.
The starter App.tsx renders the Hover me button with the tooltip hidden. Make it interactive:
show boolean with useState(false).onMouseEnter and onFocus to setShow(true).onMouseLeave and onBlur to setShow(false).show is true inside .tip-wrap: <span className="tooltip" role="tooltip">Saved to your library</span>.onFocus). Tab away: it hides (via onBlur).show is true — there is no hidden element sitting around.onFocus/onBlur alongside the mouse events is what makes it accessible.show is true ({show && <span .../>}) rather than keeping it mounted and toggling display.role="tooltip" labels the bubble for assistive tech..tooltip::after) are already in styles.css; focus on the state and the four handlers.