useRef

How can a component remember the previous value of a prop without causing another render?
Next Question (11/20)