Azentio interview question

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