How did React become so popular?
When you are starting with Front-End development you’ll be introduced to React and Angular. Today, the React vs AngularJS comparison is a popular topic. Angular is currently more popular and it’s been around for longer than React has, but React popularity is growing rapidly.
Get Jelena Gruica’s stories in your inbox
Join Medium for free to get updates from this writer.
AngularJS is a JavaScript framework that contains everything you need to set up the client-side of a website. AngularJS is based on three layers — Model, View, Controller (MVC). On the other hand, React is actually a library, not a framework. The React library only has a View. The library lacks the model and controller layers. So my question is — how did React become so popular?
- React provides a very simple and efficient way to build component trees.
- With React you can create your own components. A component represents a part of the DOM to which you can bind data and interactivity. Components can contain DOM elements or other components.
- React optimizes performance by working on a “virtual DOM”. By representing the DOM in JavaScript, React processes change very quickly, only rendering the real DOM when and where needed.
- Browsers are slow but React gives you a basically fake browser which is much faster. You can run React on the server, and the virtual DOM will be rendered and returned to the browser as a regular web page.
- JavaScript is now a necessary part of day to day programming in web development and React is just JavaScript. You can use JavaScript skills to become a better React developer.
So, like I said, with React you don’t have to worry about the DOM. React offers developers freedom to easily use it with their current implementation and those things might have caused React’s growth.
React currently has much more opportunity because it’s still a young library which has a great growth rate where AngularJS has stagnated.






