我們正在嘗試製作一個從Angular轉到Flux + React的優點和缺點列表,並附帶了這個原始列表。Angular vs React + Flux對比表 - 我的信息是否正確?
任何人都可以對辯論作出反應(請參閱我在這裏做了什麼? (請專門針對每次辯論而不是關於庫的一般性討論)。
謝謝!
--------------------------------------------------------------------
| Angular | React + Flux
--------------------------------------------------------------------
Version | 1.+ major version. | React 0.13 - not version 1 (
| Supported. | minor) - not finalized, can be
| 2.0 - migration | changed drastically.
| possible easily | Flux 2.1.
--------------------------------------------------------------------
Age | 6 years (easier find | react 2 years
| developers) |
--------------------------------------------------------------------
Framework | Yes, MVC | React is only view. Flux is a
| | pattern, not MVC.
--------------------------------------------------------------------
Community |More existing resources| Much less, than Angular.
|answers,ready 3rd party| Community smaller. Less.
|reusable code modules. | answers, etc.
---------------------------------------------------------------------
Speed |Rendering: slower | Rendering: faster
|Load time: slower | Load time: faster
|reusable code modules. |
---------------------------------------------------------------------
Testing |U tests. e2e everything| U tests.
|is ready to use. | Separated/new
|Has integrated system. | testing system.
---------------------------------------------------------------------
jQuery + |Lite is build-in inside| No jQuery support.Need to check
plugins |Maintain 1 library | compatibility issues with each
|Has integrated system. | version update
| |(need maintain 2 libraries).
---------------------------------------------------------------------
謝謝! 1.我同意Angular更復雜,可重用性更低。 2.因此,我們有更多jQuery支持的框架解決方案,這個觀點是有效的,更少的插件可供我們使用。 3.文章其實很棒。最後是一個垃圾郵件(: – alodium