3 ms·
> I don't get what the benefit of using React is It's frontend technology that is robust enough to deliver Facebook. If you haven't worked on or aren't working
by ben509 9y ago
> I don't get what the benefit of using React is
It's frontend technology that is robust enough to deliver Facebook. If you haven't worked on or aren't working on a complex UI with a team of developers, you might not appreciate how incredibly solid React is. This isn't something that can be explained well through anecdotes, but this comment is getting at it:
> Its top down `(props) => rendered view` paradigm is a breath of fresh air if you've ever spent a significant amount of time in an Angular 1.x application with a complicated web of watchers and scope sharing all over the place.
The complicated web issue isn't peculiar to Angular. Many UI frameworks are modeled in such a way that they become a rats' nest of objects, events, etc. all firing back and forth. Using React with good practices enable an overall structure that mitigates that tremendously.
- olavgg 8y agoActually, I find the DOM surprisingly structured for reading and manipulation. This button have one or more events? No problem! Want to see the code in that event, no problem. The DOM is the truth, and you are free to read, understand and modify it as you like. What is a problem though, is that there is no consensus in the team about how the code should be structured. So everyone creates their own mess. Oh state management? There is something called observer pattern for that.