DEV Community

Discussion on: Angular Concepts in React: The Async Pipe

Collapse
 
spock123 profile image
Lars Rye Jeppesen

React is just not geared towards using Observables, it's totally centered around Promises.

Collapse
 
lysofdev profile image
Esteban Hernández

Agreed, you can however, call the .toPromise() method on the final Observable.

Collapse
 
mmospanenko profile image
Maksym

Not exactly, using rxjs you can avoid unnecessary renderings passing props as observable$ and don't trigger whole tree while drilling

and then use something like Observable Hooks for subscribing. Also having model (as classes, just add DI) you will get ultimate framework like Angular but without tons of boilerplate