Azentio Interview Question

Questions I got were.. How do you optimize code in react.js ?