React JS is an open source javascript library for building user interfaces. It is created and maintained by Facebook.React uses a declarative paradigm.It designs simple views for each state in your application, and React will efficiently update and render just the right component when your data changes. The declarative view makes your code more predictable and easier to debug.A react application is made of multiple components, each responsible for rendering a small, reusable piece of HTML. Components can be nested within other components to build complex user interfaces. A component may also maintain internal state.
ReactJS uses virtual DOM based mechanism to fill data in HTML DOM. The virtual DOM works fast as it only changes individual DOM elements instead of reloading complete DOM every time.
ReactJS does not directly operate on the browser's DOM instead, it operates on a virtual DOM. It 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 the virtual DOM has been updated, React 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. Due to this, when we write a React component, we did not write directly to the DOM; instead, we are writing virtual components that react will turn into the DOM.
#ReactJS #RipplesCode
0 Comments