Within my current project setup, I have the following structure implemented:
I have a Component that interacts with a Service Class which in turn calls an external API. The specific logic that I need to implement is related solely to the user interface.
While this setup is relatively simple and clear, I find myself in a situation where I need to incorporate additional binding and logic. Consequently, I ended up adding it directly within the Component itself, which doesn't seem like the most optimal solution. I am contemplating creating a middle ground between the Component and Service Class to handle this task separately. Do you think this approach is advisable? What would be considered the best practice for handling this scenario?
Thank you.