3 ms·
Like mrcwinn, I recently switched from Backbone to React, and my experience mirrors his. I have implemented Backbone views many enough times to know how to do
by lobster_johnson 13y ago
Like mrcwinn, I recently switched from Backbone to React, and my experience mirrors his.
I have implemented Backbone views many enough times to know how to do it right; I am in no doubt whatsoever that the improvements that come from reimplementing in React are not thanks to any knowledge gained from the first implementation but rather, come from React's design itself, especially three three aspects in how React does things differently from Backbone:
* The method of rendering everything from scratch every time, through the virtual DOM;
* The nested component support; and
* The explicit state management.
In addition I would give "ability to add event handlers directly to elements" an honourable mention. (Automatic binding of "this" to component methods is also a lifesaver, but probably not dependent on React's design.)