After all, do you think that using RxJS is an overkill? While the example in your post is quite simple but we have to take a lof of efforts to make it work as expected while we have useMemo and other technique which I think is much more simpler?
I think it is useful if you're working with data streaming or if you have to compose multiple sources of events that require connecting to things and cleaning up after. For everyday development, the benefits don't overcome the added complexity.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
After all, do you think that using RxJS is an overkill? While the example in your post is quite simple but we have to take a lof of efforts to make it work as expected while we have useMemo and other technique which I think is much more simpler?
I think it is useful if you're working with data streaming or if you have to compose multiple sources of events that require connecting to things and cleaning up after. For everyday development, the benefits don't overcome the added complexity.