4 ms·
What I described as a Service would be what this query/caching layer is. I would just rather not have it embedded in the Component, making it harder to follo
by crucialfelix 11y ago
What I described as a Service would be what this query/caching layer is. I would just rather not have it embedded in the Component, making it harder to follow what a Component does. The beauty of them is that they are simple to read and understand. The more mixins you use, the more esoteric it gets and you have to read a bunch of code to understand why the render function magically has these properties to display with.
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.