3 ms·
Why was this downvoted? React essentially uses observables, right? Child components don’t directly listen to changes in the state objects of their parents. Inst
by baron816 8y ago
Why was this downvoted? React essentially uses observables, right? Child components don’t directly listen to changes in the state objects of their parents. Instead, parents know how to update their children when setState is called. Thus, the inversion of dependencies decouples objects in React in the same way observers are decoupled from their subjects in RxJS. Redux has a dependency on RXJS for a reason.