Refs With useRef
useRef gives a component a box that remembers a value between renders without causing a re-render. Use it to reach DOM elements directly, such as focusing an input, and to store values that aren't shown on screen, like a timer ID.
Lesson 17 of 28