Pregunta de entrevista de financial.com

useState vs useReducer, class based React