Skip to content
masterclass Buddy

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.

Subscribe
  • Component
  • useRef

Source: createRef – React API Reference. Checked 2026-11-03.