Hooks, Effects & Closures — Question 7Mark DoneKey TakeawaysExplain the underlying React mental model.Connect the answer to a production scenario.Knowledge CheckWhen should state be preferred over a ref?AWhen the value affects rendered outputBNeverCOnly for DOM nodesDOnly for timers