Booz Allen Hamilton interview question

Explain how reactive programming works. Tell about why JS frameworks are used instead of vanilla JS.