Pregunta de entrevista de CrossFit

How would you optimize this React component? How about this React application?