React JS: Core Features

React is a library for building user interfaces, originally created by group of Facebook engineers.

Core Features: State, Props, Virtual DOM, Components & Lifecycle methods

State is a mutable data, which utilize in the react class components. State is accessed with this.state property.

STATE (Mutable Data)

Props (properties) are immutable data, which utilize in the react class components. Props are accessed via “this.props” property.

PROPS (IMMutable Data)
REACT JS FEATURES IMAGE

Virtual DOM is a collection of data structure that mimic or mirror DOM that exists in browser DOM.

VIRTUAL DOM

Components are primary units of React JS, which maintain their own state (as private) and accept input as props.

COMponents

Life-cycle methods are special methods, which utilize in the class components during rendering and updating process.

lifecycle methods