S&P Global interview question

how react works, react lifecycle etc