4 ms·
Having used and studied both React and Angular2, Angular2 can do certain things that React can't. Two features at the forefront of this difference are: 1) Dep
by ken47 10y ago
Having used and studied both React and Angular2, Angular2 can do certain things that React can't. Two features at the forefront of this difference are:
1) Dependency injection
2) Direct support for using observables and promises in templates
However, I cannot think of anything major in the reverse direction.
There is also the fact that it is designed to be used with Typescript from the get-go, which can be a plus if type safety is your thing.
- Chyzwar 10y agoYou can inject stuff using props. DI is not unknown concept in react, note that angular1.x do not have true dependency injection. React decouple data and view. You can achieve similar behaviour but using flux/redux to publish/subscribe.