| Why Learn ReactJS
Why Learn ReactJS
As we knows many JavaScript frameworks are available nowadays in market ie. Angular, Node. But still, React cames into market and gained a huge popularity amongst them. And many previous frameworks follow the traditional data flow structure, which uses the document object model (DOM). DOM is an object which is created by browser each time when a page is loaded. And it dynamically adds or removes the data at the back end and when we done any modifications, each time a new DOM is created for the same page. So the repeated creation of DOM makes unnecessary memory wastage and will reduces the performance of the application and will use a lots of bandwidth.
And once this new technology ReactJS framework invented will remove this drawback of creation of DOM on each step. As ReactJS will allows you to divide entire application into various components. When we say about the traditional data flow, ReactJS will used the same data flow but it is not directly operating on the browser DOM immediately. Instead this will operates on virtual DOM. Which means rather than manipulating the document in a browser after changes to our data, it resolves changes on a DOM built and run entirely in memory. After we update virtual DOM, React will determines what changes made to the actual browser's DOM. The React Virtual DOM exists entirely in memory and is a representation of the web browser's DOM. And due to this, when we write a React component, we will not write directly to the DOM; instead, we are writing virtual components that react will turn into the DOM. | | |