What is library and difference between library and framework? Library is a collection of helper modules , classes , objects , functions , pre-written code , etc. A bunch of code packed together that can be used repeatedly is known as Library A library is easy to be replaced with another library A framework is a supporting structure that gives shape to your code. It comprises of lot of APIs , compilers , support programs , libraries etc It is difficult to replace frameworks Why React? React is a free, open-source JavaScript library for building User Interfaces. It is used to build single-page applications and allows you to create reusable UI components React is a JavaScript library developed by Facebook that allows you to write user interfaces and create apps Single Page Application A Single Page Application (SPA) is a web app that loads content dynamically without refreshing the whole page. It uses JavaScript to update only the required parts of the screen based on user actions.…