I have not used the material-ui lib earlier, so am not sure about the components to use for display.
The logic is working though. There could be some improvements made, e.g. I am querying GBIF on every toggle now anew. Technically it would be enough to query only once for country dataset.
I have not used the material-ui lib earlier, so am not sure about the components to use for display. The logic is working though. There could be some improvements made, e.g. I am querying GBIF on every toggle now anew. Technically it would be enough to query only once for country dataset.