Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the disadvantages of react components

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about the shortcomings of react components, the editor thinks it is very practical, so share it for you to do a reference, I hope you can get something after reading this article.

Disadvantages of react components: 1, React itself is only a V, not a complete framework; 2, need to add ReactRouter and Flux to write large-scale applications.

The operating environment of this paper: Windows7 system, react17.0.1, Dell G3.

Shortcoming

1. React itself is only a V, not a complete framework, so if a large project wants a complete framework, it basically needs to add ReactRouter and Flux to write large-scale applications.

2. Most of the pits have not been stepped out.

It is probably too new to say whether there will be any major API changes in the future. For those who use React on large and stable projects, I only know that there is Yahoo's Email.

So now there are few criticisms of React, maybe it's not that he really doesn't have a pit, but that those holes haven't been stepped out yet.

There are more advantages:

1. React is fast: it does not operate on DOM directly, but introduces a concept called virtual DOM, which is inserted between javascript logic and actual DOM with good performance.

2. Cross-browser compatibility: virtual DOM helps us solve cross-browser problems. It provides us with a standardized API, even in IE8.

3. Everything is component: code is more modular, code reuse is easier, and maintainability is high.

4. Unidirectional data flow: Flux is an architecture used to create a unidirectional data layer in JavaScript applications, which is conceptualized by Facebook with the development of React view libraries.

5, isomorphic, pure javascript: because search engine crawlers rely on server responses rather than JavaScript execution, pre-rendering your application helps search engine optimization.

6. Good compatibility: for example, RequireJS is used to load and package, while Browserify and Webpack are suitable for building large applications. They make those difficult tasks less daunting.

On "what are the shortcomings of react components" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report