useRef

Which pattern avoids recreating an expensive object on every render when storing it in a ref?
Next Question (14/20)