Infosys interview question

Mostly on the reactjs concepts