Chapter 04
Refs and the DOM
Refs are React's escape hatch: a mutable box that survives renders without causing them, and the way to reach DOM nodes. This chapter coversuseRef, ref callbacks, ref as a prop, imperative handles, and Fragment refs.Jump to a topic.
Find a question by title, tag, or summary.
Chapter 04
useRef, ref callbacks, ref as a prop, imperative handles, and Fragment refs.