React
React is a JavaScript library created by Facebook (now Meta) for building user interfaces. It mainly used to develop dynamic applications.
React use to display and update content dynamically.It is commonly used to build Single Page Applications (SPAs).When a user interacts with the application, only the required content only displayed remaining content are hide.This makes the application feel faster and more interactive.
React applications typically use a single main HTML file. inside this HTML file, there is root elements,
Get Jaganathantnea’s stories in your inbox
Join Medium for free to get updates from this writer.
such as :
<body>
<div id = "root"></div>
</body>React uses this root element to render the application’s content dynamically.
React works with DOM (Document Object Model) to display and update the user interface.React primarily uses Virtual DOM concept.
Real DOM → The actual webpage structure managed by browser.
Virtual DOM → Virtual DOM use Reconciliation.
Reconciliation is process in react of comparing the previous virtual DOM and updated Virtual DOM to identify changes and updates.Reconciliation helps reduce rendering time to identify changes in the UI and updating only the required parts.




