loading...

Any developer out there can tell us how you use RxJS?

sunflower profile image sunflowerseed ・1 min read

For example, do you use it all by itself? Or use it with Angular?

Is it a standalone framework that has similar functionality as React or Vue, or is it supposed to be used together with another framework?

Discussion

pic
Editor guide
 

RxJS is a library that implements concepts of Reactive Programming. It is intended to be used alongside other libraries (React, Redux, Vue, etc) or frameworks (Angular, etc) to solve a specific problem (side effects, data fetching, etc)
One common scenario is to use it alongside Redux Epics to handle side effects of fetching or updating data.

 

I'm using stateful observeables (streams) provided using RxJS' BehaviourSubject class to create streams of data in different components in my ReactJS app and share that state with other areas of the application.