DEV Community

Chokri K'
Chokri K'

Posted on • Originally published at on


Why React is so popular?

This is not a comparing between Vue, angular and React. This post is according to with over than 60,000 job offers. I’ll talk about why React is the most popular JavaScript library.

All JavaScript developers know how hard is working with DOM API. React make it easy to use them, especially when we talk about Event Listeners. It suggests to take more control and power over when something happens in the virtual DOM when mounting, updating and unmounting components.

This library helps describe the User Interface, each element is a component. It’s a design philosophy with virtual DOM and batched DOM updates makes it really fast and easy to test each component.

With React life cycle, no component will be mounted before each child component of it gets mounted first. And this adds more robustness and more security to an app. For example, We can secure the whole application and have nothing mounted if the user is not logged in.

It’s very hard to write HTML into JavaScript. Personally , I used mustache JS for templates. I remember how it’s complicated to append HTML into DOM. React made JSX very easy to use.

React was hard to understand with complicated standards, Design patterns and its APIs like createRef, createClass and createElement…, etc. It’s harder when developers have to make a huge form with many functions to bind them into the class component. When the React team had announced functional components and hooks, React become easier to understand and very easy to use than before.

For me, as a Lead Front developer in a recent mission, there is no substantial difference in which framework to choose. Vue.js is also on board, every framework has its own pros and cons

Confused Trailer Park Boys GIF

Leave a comment if you do not agree 😒

The post Why React is so popular? appeared first on C.Khalifa.

Top comments (0)

Top Posts from the React Ecosystem

1. Changes In The Official React Documentation

The former React Docs Beta has been officially released as the updated React documentation at after years of hard work and refinement. Check out the brand new React Docs: What’s New in the Updated React Docs

2. CRA's Time is Over

React developer team has removed create-react-app (CRA) from official documentation rendering it no longer the default setup method for new projects. The bulky setup, slow, and outdated nature of CRA led to its removal: create-react-app is officially dead

3. How to Fetch Articles for Your Portfolio

Integrate the articles of your profile into your personal portfolio with either React, Vue, or Next.js by following these simple steps. It outlines how to include frontend to pull the information and correctly utilizes the API: How to Fetch Your Articles for Your Portfolio with React