ReactJS Introduction

ReactJS is a JavaScript library for building front end application or user interface(UI). It only changes what needs to be changed. It ease us to create reusable UI components.

=> It is created by Facebook.

Advantages of ReactJS:

  • Reusable components
  • Open Source
  • Efficient and Fast
  • Works in Browser
  • Large Community

ReactJS Features

  • JSX – It is a syntax extension to JavaScript. We do use it with React to express what the UI should look like. It is not mandatory to use JSX in React but it is recommended as it produces React elements.
  • Components – Components are the building block of React app. In react, we need to think everything as a component. And it helps to maintain the code while working on larger project.
  • One-way Data Binding – ReactJS is designed in such a way that it follows unidirectional data flow or one way data binding. If the data flow in one direction, then it requires additional features, because components are supposed to be immutable and the data within them cannot be changed.
  • Virtual DOM – It strategically update DOM without redrawing all the nodes in a single page application. Virtual DOM is compared to old DOM, and virtual DOM update only that part in existing DOM which has been changed. It’s not rendering the whole DOM.
  • Performance – ReactJS provides fast and great performance to the web applications.

Trending Topics