What is ReactJS

suggest change

ReactJS is an open-source, component-based front-end library responsible only for the view layer of the application. It is maintained by Facebook.

ReactJS uses a virtual-DOM mechanism to fill in data (views) in the HTML DOM. The virtual DOM is fast owing to the fact that it only changes individual DOM elements instead of reloading the complete DOM every time.

A React application is made up of multiple components, each responsible for outputting a small, reusable piece of HTML. Components can be nested within other components to allow complex applications to be built out of simple building blocks. A component may also maintain internal state - for example, a TabList component may store a variable corresponding to the currently open tab.

React allows us to write components using a syntax extension called JSX. JSX lets us write components with HTML-like markup, whilst mixing in JavaScript expressions. React converts this into a virtual DOM, and ultimately outputs HTML.

React “reacts” to state changes in your components quickly and automatically to rerender the components in the HTML DOM by utilizing the virtual DOM. The virtual DOM is an in-memory representation of an actual DOM. By doing most of the processing inside the virtual DOM rather than directly in the browser’s DOM, React can act quickly and only add, update, and remove components which have changed since the last render cycle occurred.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents