DEV Community

Discussion on: React: I like RxJS

Collapse
 
beorn profile image
Bjørn Stabell

Nice summary - RxJS / reactive programming is really great :)

I'm wondering if instead of all the useEffect stuff, maybe you can just use an observable hook like useObservableState:

const output = useObservableState(input$, initialState)
Enter fullscreen mode Exit fullscreen mode

See useObservableState

Collapse
 
dewaldels profile image
Dewald Els

This is super interesting! This is actually what I had in mind for the next step.