Infosys interview question

How data is passed in the reactjs.