Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
82
export
function
useRef<T>(initialValue: T): {current: T} {
83
const
dispatcher = resolveDispatcher();
84
return
dispatcher.useRef(initialValue);
85
}
86
87
export
function
useEffect(
88
create: () => (() => void) | void,
Callers
15
Component
Function · 0.90
useFoo
Function · 0.90
Parent
Function · 0.90
Component
Function · 0.90
allow-ref-initialization.js
File · 0.90
useCustomRef
Function · 0.90
Component
Function · 0.90
Component
Function · 0.90
Component
Function · 0.90
useCallback-ref-in-render.js
File · 0.90
error.ref-initialization-post-access-2.js
File · 0.90
Component
Function · 0.90
Calls
1
resolveDispatcher
Function · 0.70
Tested by
15
Component
Function · 0.72
useFoo
Function · 0.72
Parent
Function · 0.72
Component
Function · 0.72
useCustomRef
Function · 0.72
Component
Function · 0.72
Component
Function · 0.72
Component
Function · 0.72
Component
Function · 0.72
useThunkDispatch
Function · 0.72
Component
Function · 0.72
useKeyCommand
Function · 0.72