by crucialfelix · 11y ago · 0 comments
I would still rather connect to RethinkDB with a frontend service and push those to stores and have the component watch the store.
Because while this might work for a small use case, a real world usage will quickly outgrow that and you will wish you hadn't stuffed such functionality in a display component.
So this is probably most useful for quick sketches and debugging stuff.
Another point would be that the service or store could be re-used in more than just react, and it can be tested without having to consider the UI.