Because transition work can be restarted, code should remain pure during render and derive UI from current props and state.
Question 18 of 20 in useTransition Quiz