J.P. Morgan interview question

They asked the difference between a useState hook and a useRef hook.