ReactJs

Interview Questions

  1. Differentiate between Real DOM and Virtual DOM.
  2. What is React?
  3. What are the features of React?
  4. List some of the major advantages of React.
  5. What are the limitations of React?
  6. What is JSX?
  7. What do you understand by Virtual DOM? Explain its working.
  8. Why can’t browsers read JSX?
  9. How different is React’s ES6 syntax when compared to ES5?
  10. How is React different from Angular?

Real DOMVirtual DOM.
It updates slowIt updates faster
Can directly update HTML.Can’t directly update HTML
Creates a new DOM if element updates.Updates the JSX if element updates.
DOM manipulation is very expensiveDOM manipulation is very easy
Too much of memory wastage

Example:-