3 ms·
Redux can be used in any javascript app. Its a pattern, not something stuck to react.
by bgnm2000 11y ago
Redux can be used in any javascript app. Its a pattern, not something stuck to react.
- cheez 11y agoTrue, but with redux and angular, now you have two things where state could live.
- nilliams 11y agoYou have 2 possibilities yes, but afaict Angular 2 doesn't push you to use 'its way', unlike the early days of Angular 1 where 'the way' to do state was $scope. So I could see how you could comfortably use Angular 2 with Redux as long as your team was on-board to always do state the Redux way.
- cheez 11y agoGive a developer an inch and they'll take the football field. Maybe that's an acceptable risk, but I wouldn't take that risk.
- danmaz74 11y agoNitpicking: Flux is a pattern, Redux is a library (which implements something similar, but not exactly the Flux pattern).