I have seen most of my friends working with react as a beginner, they have completed lots of projects. But the reality is among them, a few exactly know how react works behind the scene. Because they didn’t spend enough time or they didn’t find it necessary to understand this. So what happens ultimately? Those who learn in this way become frustrated or can’t find too much hope with learning any library or framework. So experts suggest knowing deeply about the language before going through a library or framework or knowing profoundly about the kinds of stuff. So today I am discussing how react works under the hood. At first, let’s think about the naming of react. I have found a few articles where the writer claimed that when we try to update the DOM(we will discuss it later), react started comparing the changes with the previously created virtual DOM. That means how react reacts with the change(maybe this is the reason for naming react). However we have found a term DOM. Let’s find out the mystery behind this and why we should become aware of it while learning JS DOM property.....

Read this article on Medium