WeDig Techsolutions interview question

How will you optimize a react application?