useOptimistic is a Hook, so it follows the Rules of Hooks and must be called consistently at the top level.
Question 16 of 20 in useOptimistic Quiz