UBS interview question

Event loop, JS internals. React components lifecycle.