React JS - Introduction

 React JS - Introduction

  • React JS also known as React.

  • It is a JavaScript Library developed by Facebook in 2013 for building UI.

  • React JS follows component-based-architecture, where UI is divided into multiple re-usable components.

  • Components are the heart of React JS application.

  • Components are re-usable sections.

  • React JS uses virtual DOM mechanism, due to which it works very fast. The entire DOM is not loaded, only individual DOM is loaded.

  • React JS is used to develop modern web applications.
Few Key Features & Concepts of React :
  • Components : React allows users to create re-usable components.

  • JSX : It stands for JavaScript XML. It enables developers to write HTML-like syntax within JavaScript, making it easier to describe and render components.

  • Virtual DOM : React JS uses virtual DOM. The entire page is not loaded, only component which is used is loaded or in other words, individual DOM is loaded.

  • Unidirectional Data Flow : React follows unidirectional data flow, also known as one way binding. The data in React application flows in a single direction (from parent to child component). This helps to maintain a predictable state and easy to debug & understand the application.

  • React Hooks : Hooks was introduced in version 16.8. It allow developers to use state and other React features in functional components, instead of relying on class components. It provides a simple way of managing state and lifecycle events.

  • React Native : It is sibling framework for building Native Mobile Applications (for both Android & IOS platforms).
React Official Website : 
INTERVIEW QUESTIONS
  • What is the latest version of React JS?
    ANSWER :
    React 18

  • What is the difference between React JS & React Native?
    ANSWER :
    React JS is used to develop web applications while React Native is used to develop native mobile applications.

  • When was React JS Launched & Who is the owner?
    ANSWER :
    React JS was launched in 2013 by Facebook.

Comments