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

Function useRef

packages/react-reconciler/src/ReactFiberHooks.js:4091–4095  ·  view source on GitHub ↗
(initialValue: T)

Source from the content-addressed store, hash-verified

4089 }
4090 },
4091 useRef<T>(initialValue: T): {current: T} {
4092 currentHookNameInDev = 'useRef';
4093 mountHookTypesDev();
4094 return mountRef(initialValue);
4095 },
4096 useState<S>(
4097 initialState: (() => S) | S,
4098 ): [S, Dispatch<BasicStateAction<S>>] {

Callers 7

ParentFunction · 0.50
AppFunction · 0.50
ParentFunction · 0.50
useDebouncedCallbackFunction · 0.50
CounterFunction · 0.50
ExampleFunction · 0.50

Calls

no outgoing calls

Tested by 6

ParentFunction · 0.40
AppFunction · 0.40
ParentFunction · 0.40
useDebouncedCallbackFunction · 0.40
CounterFunction · 0.40
ExampleFunction · 0.40