Domanda di colloquio di CrossFit

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