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`.
Glossary: React Beyond the Basics
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`.