Posts

Showing posts from 2022
Image
  1.  Differentiate between Real DOM and Virtual DOM. Real DOM vs Virtual DOM Real DOM Virtual  DOM 1. It updates slow. 1. It updates faster. 2. Can directly update HTML. 2. Can’t directly update HTML. 3. Creates a new DOM if element updates. 3. Updates the JSX if element updates. 4. DOM manipulation is very expensive. 4. DOM manipulation is very easy. 5. Too much of memory wastage. 5. No memory wastage. 2. What is React? React is a front-end JavaScript library developed by Facebook in 2011. It follows the component based approach which helps in building reusable UI components. It is used for developing complex and interactive web and mobile UI. Even though it was open-sourced only in 2015, it has one of the largest communities supporting it. 3. What are the features of React?   Major features of React are listed below: 4. List some of the major advantages of React.It uses the  virtual DOM  instead of the real DOM. It uses  server-side rendering . It f...