最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - Is React suitable for multi page applications? - Stack Overflow

matteradmin4PV0评论

I'm currently developing a Single Page Application (in this case AngularJS), but as it grows I find it more and more tempting to refactor it into a multi page app.

However, I still need the ability to have sophisticated, dynamic UIs on the client (which requires more than just DOM manipulation but awareness of my information model).

I know most people use jQuery for this; I'm afraid it won't get me as far as I want, and I'm wondering if ReactJS is suitable for that job (well, when you're running a small pany, not Facebook).

I'm currently developing a Single Page Application (in this case AngularJS), but as it grows I find it more and more tempting to refactor it into a multi page app.

However, I still need the ability to have sophisticated, dynamic UIs on the client (which requires more than just DOM manipulation but awareness of my information model).

I know most people use jQuery for this; I'm afraid it won't get me as far as I want, and I'm wondering if ReactJS is suitable for that job (well, when you're running a small pany, not Facebook).

Share Improve this question asked Jun 19, 2015 at 8:03 Valentin WaeselynckValentin Waeselynck 6,06128 silver badges47 bronze badges 1
  • You might want to look into the relatively new idea of "isomorphic javascript". Which React is good at. This looks like it covers most of it: nerds.airbnb./isomorphic-javascript-future-web-apps – Davin Tryon Commented Jun 19, 2015 at 8:11
Add a ment  | 

1 Answer 1

Reset to default 7

To be quite honest I've tried the single page app route with Angular, Backbone and even Knockout to an extent.

In my efforts I've found the most maintainable solution, especially for large teams is to use a multi-page app and rely on React to create a dynamic single page type experience where it's necessary.

Due to the buzz term SPA I've found a lot of teams think they need to be cutting edge by adding unnecessary plications like an SPA where a standard multi-page MVC app is a much better solution.

To me, React is the perfect solution for the problem of building a large scale website which may act as a multi-page app in some areas where necessary, but use standard sane MVC elsewhere.

React just works very easily with Django, ASP.NET, Ruby etc...

Post a comment

comment list (0)

  1. No comments so far