How can I determine the selected country when user clicks a specific country?
Here is what I have done but no luck:
<Gio height="100vh" data={this.state.data} configs={configs} onCountryPicked={callback} />
function callback(selectedCountry) { console.log("selectedCountry ", selectedCountry); }
How can I determine the selected country when user clicks a specific country?
Here is what I have done but no luck:
<Gio height="100vh" data={this.state.data} configs={configs} onCountryPicked={callback} />function callback(selectedCountry) { console.log("selectedCountry ", selectedCountry); }