Bally's Interactive Interview Question

How do you manage state in react class? A practice question on useRef.