Are the application scenarios of reactjs and angularjs the same?
I know that angularjs is a framework designed for single-page applications. Is reactjs also designed for single-page applications?
Nowadays, front-end development tends to use single-page applications. Are there any benefits of single-page applications?
Front-end novice asks for advice from experts
走同樣的路,發(fā)現(xiàn)不同的人生
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, 分治
的管理,數(shù)據(jù)與view的一體化。它只有一個(gè)中心,發(fā)出狀態(tài),渲染view,對(duì)于虛擬dom它并沒(méi)有提高渲染頁(yè)面的性能,它提供更多的是利用jsx便捷生成dom元素,利用組件概念進(jìn)行分治管理
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
只是一個(gè)組件庫(kù),自身不包含http請(qǐng)求,前端路由功能,支持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.