PureCode Software interview question

How do you optimize the performance of a large React application?