MCPcopy Create free account
hub / github.com/szhsin/react-menu / getBtnMouseEvents

Function getBtnMouseEvents

example/src/components/Example.js:45–54  ·  view source on GitHub ↗
(anchorRef, tooltip)

Source from the content-addressed store, hash-verified

43 };
44
45 const getBtnMouseEvents = (anchorRef, tooltip) => ({
46 onMouseEnter() {
47 setAnchorRef(anchorRef);
48 setToolTip(tooltip);
49 toggleMenu(true);
50 },
51 onMouseLeave() {
52 toggleMenu(false);
53 }
54 });
55
56 useEffect(() => {
57 setToolTip(sourceBtnTitle);

Callers 1

Example.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…