Directory:

  • one what is rxjs ?
  • two Why do we use it?
  • 3. How to use it?

Body:

what is rxjs ?

RXJS is an asynchronous programming API that handles reactive data flows

Why do we use it?

  • RXJS is an asynchronous orchestration tool
  • RXJS consolidates promises, events and data into Observables, and provides APIS to combine and divide Observables, forming a pipeline.
  • Promise can handle asynchronous callbacks to multiple events, but it can handle only one event at a time. With error handling, the way promise is written makes the code complex and difficult to maintain

How we use it?

Here we will introduce RXJS practice and some source knowledge, understand its pipeline and subscribe

  • RXJS pipeline principle
  • Principles of RXJS operators and operations
  • RXJS subscribe principle