Table of Contents
There are many big reasons for why React has become so popular. Let's examine how popular React is, what people like about it, and when we should/shouldn't use React.
There are many big benefits to React, but the main ones are:
- Clean programming. By creating your views with React, you get easy-to-read and easy-to-reuse code.
- Strong community. If you need a package like a map or a graph, you can bet that there’s a great package that you can install. The strong community means you have a breadth of packages that you can install and use immediately. Less writing for you!
- Fast performance. React for small and large projects works very quickly thanks to the Virtual DOM it uses.
Per the stateofjs.com 2018 survey, these are the most liked aspects of React:
Many large scale companies are using React in production. This is very encouraging when deciding to use React for your own projects, big and small. Here are some of the biggest sites built with React:
- And the list goes on!
Another cool thing about learning React is that we can use that knowledge to build mobile apps with React Native.
- Facebook and Instagram
According to StackOverflow’s 2018 surveys, React ranks #3 in most popular.
React ranks 2nd among the developers that loved it:
It ranks #1 on the list of most wanted tools:
Per the stateofjs.com survey for 2018, React ranks highly on amount of users that have used it and would use it again.
- 64.8% used it and would use it again
- Only 6.7% of users would not use it again
- React: 119,425 Stars
- Vue: 124,544 Stars
- Angular: 44,175 Stars
- Embrace JS
- Understand styling with CSS-in-JS
- Has frontend designers that are familiar with HTML and aren't comfortable with JSX
- Has frontend designers that are familiar with CSS
JSX can be somewhat of a non-starter for some designers that are more familiar with HTML. JSX can be learned quickly, but that could be a learning curve that you don't want to apply on your designers.
With React styles, you can use CSS, Sass, and CSS-in-JS. If your app uses CSS or Sass, then your designers will have an easy time jumping into the code base.
If you are using a CSS-in-JS solution like styled-components then there will probably be an adjustment period.
This section won’t be that long because React is a great fit for any team. There just may be a larger learning curve with some teams. It all depends on your project to determine if you want to spend the time on that learning curve.
React is a great fit for any team. There just may be a larger learning curve with some teams.
Like this article? Follow @chrisoncode on Twitter