Why ReactDOM is used ?
Earlier, React Developers directly manipulated the DOM elements which resulted in frequent DOM manipulation, and each time an update was made the browser had to recalculate and repaint the whole view according to the particular CSS of the page, which made the total process to consume a lot of time.
To solve this issue, React brought into the scene the virtual DOM. The Virtual DOM can be referred to as a copy of the actual DOM representation that is used to hold the updates made by the user and finally reflect it over to the original Browser DOM at once consuming much lesser time.
React JS ReactDOM
React JS ReactDOM or react-dom is the most widely used package of React. React provides the developers with a package react-dom to access and modify the DOM. Let’s see in brief what is the need to have the package.
Table of Content
- What is ReactDOM ?
- How to use ReactDOM ?
- Why ReactDOM is used ?
- Important functions provided by ReactDOM
- Key features of ReactDOM