MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / handlePositionClick

Function handlePositionClick

src/App.tsx:14–18  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

12 const tooltipRef = useRef<TooltipRefProps>(null)
13
14 const handlePositionClick: React.MouseEventHandler<HTMLDivElement> = (event) => {
15 const x = event.clientX
16 const y = event.clientY
17 setPosition({ x, y })
18 }
19
20 const handleButtonClick: React.MouseEventHandler<HTMLButtonElement> = (event) => {
21 const target = event.target as HTMLElement

Callers 1

AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected