React 19+ · Function
createRef
createRef creates a ref object for class components. React can place a referenced JSX node in its current property, which code can then use.
Last updated
Syntax
createRef()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
useRefComponentforwardRef