MCPcopy
hub / github.com/imbhargav5/rooks / ref

Function ref

packages/rooks/src/hooks/useOnHoverRef.ts:43–45  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

41 }, [mouseEnterCallback, mouseLeaveCallback, node]);
42
43 const ref: RefCallback<HTMLElement> = (el) => {
44 setNode(el);
45 };
46
47 return ref;
48}

Calls

no outgoing calls

Tested by

no test coverage detected