3 ms·
From the official website of both technologies: React: "A JavaScript library for building user interfaces" AngularJS: "AngularJS is a structural framework for d
by enrmarc 12y ago
From the official website of both technologies:
React: "A JavaScript library for building user interfaces"
AngularJS: "AngularJS is a structural framework for dynamic web apps".
So, aren't they two different things? (Honest question since I haven't play with React yet).
- dntrkv 12y agoYes, they are. React deals with more of the templating side of things (many people use it as the V in MVC, or in some cases as the V & C). But along with React, Facebook also released their Flux architecture which isn't a framework but a new approach to the MV* pattern which many people are using with React. Part of the Flux architecture is a concept called "Dispatcher" which handles the flow of data throughout the app. Facebook did release their code for their implementation of a Dispatcher but not much else. So React + Flux can act as a complete framework, but React alone does not.
- mambodog 12y agoThe combination of React with a data/state management pattern such as Flux (https://facebook.github.io/flux/ https://facebook.github.io/flux/) is fairly analogous. You can also just use something like Backbone models (for example) with React if you want to use a more 'traditional' JS MVC pattern.