Skip to content

Glossary: React Beyond the Basics

ref

Also written: refs, useRef

A box made with useRef that holds a value between renders without re-rendering when it changes. Put `ref={r}` on an element and React stores the page element in `r.current`.

Where the book teaches it

Related terms

querySelector