3Pillar interview question

react js lifecycle