Hey Everyone. I'm new to these web dev frameworks in general and I was looking for some advice with this simple school project I am working on. I have a solution which I've already submitted but I'm not sure if the architecture is very good.
I just need to send an API request based on which part of an SVG someone clicks (the country in a world map) and update the UI based on the data received from that request.
I have a parent world component that has two child components: map and info-box. map is responsible for reporting the selected country. info-box displays the information based on the selected country.
map uses an output event to emit the country and process the data from a service. world binds the emitted country to the info-box and then info-box simply displays the content fine. I feel like this solution could use a lot of work though.
I don't like that map processes the data from the service. I don't know if all this input/output binding is efficient.
