PrimaThink interview question

Why we use event? why we use react-js?