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

Function removeAnchor

src/test/tooltip-observers.spec.js:290–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

288 const containerRef = useRef(null)
289
290 const removeAnchor = () => {
291 if (containerRef.current) {
292 const anchorToRemove = containerRef.current.querySelector('#anchor-to-remove')
293 if (anchorToRemove) {
294 containerRef.current.removeChild(anchorToRemove)
295 }
296 }
297 }
298
299 return (
300 <div ref={containerRef}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected