This is a pretty good article that explains how react’s virtual DOM improves performance : https://programmingwithmosh.com/react/react-virtual-dom-explained/
it not how it works you write it using js and inside the js file your return with an Html and render it with DOm it will make your app much faster
learn more at:https://reactjs.org/docs/react-dom.html
In case you don’t know, the “HTML” that you write in React actually isn’t HTML at all, it’s JSX.
It may look like HTML, but it offers features that make it much more powerful than plain HTML.
reactDOM.render is called.
Also note that DOM objects would normally be created by the browser as a result of parsing HTML source. In case of React, no HTML parsing takes place, except for the main
index.html file, all the rest is done through JS.
I have just started to learn react and I can’t understand why exactly do we need to use reactDOM.render() when we can just write straight HTML.
Please provide enough code so others can better understand or reproduce the problem.
So react compares and update change only where necessary, then what does the real dom do that makes it slow?