React 19+ · Type Alias
RefObject
useRef remembers a value without causing a re-render when that value changes. It can also hold a DOM node for imperative actions.
Last updated
Syntax
const ref = useRef(initialValue)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
refcurrentuseRef