最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin4浏览0评论

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...

发布评论

评论列表(0)

  1. 暂无评论