I see many people saying that React is a library, comparing it to Angular’s framework, and then there is the issue of data flow, and I dismiss it.
First of all, I think React is a change in thinking compared to Angular. It is not a library, but a development concept, componentized, 分治的管理,数据与view的一体化。它只有一个中心,发出状态,渲染view,对于虚拟dom它并没有提高渲染页面的性能,它提供更多的是利用jsx便捷生成dom元素,利用组件概念进行分治管理Every part of the page (such as header section footer slider), this is the future trend. But I didn't say that other tools besides React can't do this.
ReactJS is just a UI library and needs to be coordinated with other third-party tools. AngularJS is a complete framework that has all the functions except the UI library.
Same as above, it feels like react只是一个组件库,自身不包含http请求,前端路由功能,支持jsx,而angular is a large and comprehensive framework with various functions, but the degree of freedom is low
The work I am doing is to rewrite an Angularjs application with Reactjs. I think the problems solved by Angular and React are all aimed at the development process. In terms of application scenarios, the problems solved by Angular can definitely be solved by React, but Angular provides a relatively complete solution. If React is used and peripheral related technologies such as React Router are used, the effect will be similar. In fact, it can also be done with other frameworks, or even with jQuery or even without a framework or library. Of course, development efficiency, scalability, and maintenance costs need to be considered before making a choice. As for single-page applications, I remember a great master said that as long as you don’t do SEO, you can use SPA as much as you want.
I see many people saying that React is a library, comparing it to Angular’s framework, and then there is the issue of data flow, and I dismiss it.
First of all, I think React is a change in thinking compared to Angular. It is not a library, but a development concept, componentized,
分治
的管理,数据与view的一体化。它只有一个中心,发出状态,渲染view,对于虚拟dom它并没有提高渲染页面的性能,它提供更多的是利用jsx便捷生成dom元素,利用组件概念进行分治管理
Every part of the page (such as header section footer slider), this is the future trend. But I didn't say that other tools besides React can't do this.One is a library, one-way data flow. One is the framework, two-way binding.
ReactJS is just a UI library and needs to be coordinated with other third-party tools. AngularJS is a complete framework that has all the functions except the UI library.
Same as above, it feels like
react
只是一个组件库,自身不包含http请求,前端路由功能,支持jsx,而angular
is a large and comprehensive framework with various functions, but the degree of freedom is lowThe work I am doing is to rewrite an Angularjs application with Reactjs. I think the problems solved by Angular and React are all aimed at the development process. In terms of application scenarios, the problems solved by Angular can definitely be solved by React, but Angular provides a relatively complete solution. If React is used and peripheral related technologies such as React Router are used, the effect will be similar. In fact, it can also be done with other frameworks, or even with jQuery or even without a framework or library. Of course, development efficiency, scalability, and maintenance costs need to be considered before making a choice. As for single-page applications, I remember a great master said that as long as you don’t do SEO, you can use SPA as much as you want.