React is declarative, efficient, and flexible library for building user interfaces.So React.js is generally thought of as the view layer in an application.React is divided into two major API. First, the React DOM. This is the API that’s used to perform the actual rendering on a web page. Second, there’s the React component API. These are the parts of the page that are actually rendered by React DOM. API It defines the logical structure of documents and the way a document is accessed and manipulated.. So, to make it faster, React implements a virtual DOM that is basically a DOM tree representation in JavaScript.React component, the following areas . Data: This is data that comes from somewhere (the component doesn’t care where), and is rendered by the component. Lifecycle: These are methods that we implement that respond to changes in the lifecycle of the component. For example, the component is about to be rendered. Events: This is code that we write for responding to user interactions. JSX: This is the syntax of React components used to describe UI structures.