from React Beginner Tutorial

  • React has a Virtual DOM that corresponds to the actual DOM as a JavaScript object.
  • When we manipulate the virtual DOM, React cleverly reflects those changes onto the actual DOM.
    • The virtual DOM can be easily linked with data, allowing us to automatically update the DOM just by manipulating the data.
    • As a result, it is also beneficial to separate the logic for UI updates from the logic for data manipulation.