MCPcopy
hub / github.com/facebook/react / useRef

Function useRef

packages/react/src/ReactHooks.js:82–85  ·  view source on GitHub ↗
(initialValue: T)

Source from the content-addressed store, hash-verified

80}
81
82export function useRef<T>(initialValue: T): {current: T} {
83 const dispatcher = resolveDispatcher();
84 return dispatcher.useRef(initialValue);
85}
86
87export function useEffect(
88 create: () => (() => void) | void,

Callers 15

ComponentFunction · 0.90
useFooFunction · 0.90
ParentFunction · 0.90
ComponentFunction · 0.90
useCustomRefFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90
ComponentFunction · 0.90

Calls 1

resolveDispatcherFunction · 0.70

Tested by 15

ComponentFunction · 0.72
useFooFunction · 0.72
ParentFunction · 0.72
ComponentFunction · 0.72
useCustomRefFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72
ComponentFunction · 0.72
useThunkDispatchFunction · 0.72
ComponentFunction · 0.72
useKeyCommandFunction · 0.72