4 ms·
This code reminds me of Backbone. I think we all started here and then abstracted event handling and reactivity into a tiny framework like Backbone. React and
by msoad 4y ago
This code reminds me of Backbone. I think we all started here and then abstracted event handling and reactivity into a tiny framework like Backbone.
React and other declarative approaches are inherently different. In React I hardly think of when my component renders. In Backbone days, I remember having to debug why some part of code is not running when I'm expecting it to run. React does this really well.
- steve_adams_86 4y agoA cool thing about react is that it’s easy to reason about as well. The reconciliation algorithm is fundamentally pretty simple and there isn’t any magic happening. It can get confusing to track down unexpected renders when you think the result of the algorithm should be different, but that’s not really an issue with react so much a the nature of managing complex state, memoization algorithms which potentially use different diffing strategies, and logic which might be mutating state in ways you don’t quite expect, and so on. People criticize these front end libraries but I’m still impressed by how well state management has been integrated into such extensible and scalable view layers.