Package Exports
- react-geoidentify-country-selector
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-geoidentify-country-selector) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-geoidentify-country-selector
The best Identifier geocoder for country selector on react
Installation
$ npm i react-geoidentify-country-selector --save
or
$ yarn add react-geoidentify-country-selector
Basic Usage
ES6 with JSX example
import React from 'react';
import CountrySelector from 'react-geoidentify-country-selector';
class App extends React.Component {
getSelectedCountry(coutryObject) {
console.log(coutryObject);
/*
{
countryName: "Georgia",
ISOALPHA2Code: "GE",
ISOALPHA3Code: "GEO",
ISONumericalCode: 268
}
*/
}
render() {
return (
<div>
<CountrySelector
defaultCountry="Georgia"
getSelectedCountry={coutryObject => this.getSelectedCountry(coutryObject)}
/>
</div>
);
}
}
export default App;