Translation of the article “Stop Using React for EVERYTHING!” , Published on medium.com.So, you have mastered React. And added integration with ES6. Okay, you're good at breaking your code into components. Besides, you ... stop. We do not care.
Just because you met a well-known framework with some good features — it does not make you a genius. And it
definitely does not make React the right choice for everything that you do. In fact, this is probably not the best choice in most cases.
')
ReactJS is Charizard (such a pokemon). This is a fire-breathing dragon in the world of javascript. He is powerful, he is fast, he is dazzling, and smart programmers are dragged away from him.
If you have a very dynamic application that needs to update its appearance frequently, and you want to avoid a lot of difficulties with templates, you look at the grass Pokémon opponent and the virtual DOM of the reactor will be super efficient. But if your site does not need all this,
choose something else !
Do not limit yourself to stereotypes. Do not chase the latest fads. The specific situation will show which approach is best to fulfill the mission of your team.
Colin powell
Stop choosing ReactJS just for the sake of choosing ReactJS! This is not a silver bullet and a golden grail, as you are trying to use. If your site has a simple dynamic form, you don't need this fucking virtual DOM. If your application needs a simple template engine, you don't need a fire-breathing monster! Young developers are especially susceptible to the goodies of the framework and use ... this ... for ... everything. This is ridiculous and ugly. [Loudly to the side] JSX, really? "But you get used to it," they say. You also get used to the taste of any rubbish, but this does not mean that you need to continue to use it.
I absolutely understand the benefits of the React and I think it has already greatly influenced the future of javascript. I love how clean it integrates with ES6 and its component architecture, which in general is the future of the entire web. However, I rarely choose it for projects. For static sites, Jade is a great template engine. For applications with REST data, I use Angular. There is a time and place for every great technology.
Cheeseburger with ham from Five-Geys is delicious, but not for breakfast.
I
I dream that one day this nation will straighten up and will choose the best framework for working not according to the color of its logo. React, Angular, Ember, Backbone, Vue, Knockout, Mithril, Jade, Django, Rails, etc. etc. Maybe your web application is so simple that you could just write old plain javascript! What?!
In the end, the choice is yours, but do not allow your opinion to be shaped by the quirks of the crowd. Find out why companies like Google, MSN and Vevo are using Angular. Or why companies like Sony, Reddit and Pinterest use Backbone. Or why companies like Netflix, Yahoo, and LinkedIn use Ember. There are smart people who do not choose React. Ask yourself why?
PS The article may absolutely not reflect the opinion and views of the translator. Presented here for discussion / confirmation / refutation in the comments.