React 19+ · Type Alias
ComponentRef
createRef makes a ref object for a class component. React can place a DOM node or another value in its current property.
Last updated
Syntax
createRef()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ComponentuseRef