Skip to content
masterclass Buddy

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.

Subscribe
  • ref
  • current
  • useRef

Source: useRef. Checked 2026-11-03.