English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

ReactJS Overview

ReactJS is a JavaScript library used to build reusable UI components. According to the official React documentation, the following is defined-

React is a library for building composable user interfaces. It encourages the creation of reusable UI components, which provide data that changes over time. Many people use React as the V in MVC. React abstracts the DOM and provides a simpler programming model and better performance. React can also be used to render on the server with Node and support native applications with React Native. React implements unidirectional reactive data flow, which reduces boilerplate and makes it easier to reason than traditional data binding.

React Features

  • JSX− JSX is a syntax extension for JavaScript. JSX is not required for React development, but it is recommended.

  • Components(Components)− React is just about components. You need to consider everything as a component. This will help you maintain code in large projects.

  • Unidirectional Data Flow and Flux− React implements unidirectional data flow, making it easy to reason about applications. Flux is a pattern that helps maintain data unidirectional.

  • License − React is licensed by Facebook Inc. The documentation is licensed under CC BY 4.0 License.

React Advantages

  • Uses virtual DOM as a JavaScript object. Since JavaScript virtual DOM is faster than regular DOM, it can improve the performance of the application.

  • Can be used on the client and server sides and other frameworks.

  • Components and data patterns improve readability and help maintain larger applications.

React Disadvantages

  • Only covers the view layer of the application, so you still need to choose other technologies to get a complete set of development tools.

  • Using inline templates and JSX, which seems awkward to some developers.