Package Exports
- turkey-cities-towns
- turkey-cities-towns/src/index.js
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 (turkey-cities-towns) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installing
npm i turkey-cities-towns
or
yarn add turkey-cities-towns
Usage
import React from "react";
import useCities from "turkey-cities-towns";
const App = () => {
const { cities } = useCities();
return (
<div className="App">
{cities.map(city=> <p key={city.plate}>{city.name}</p>)}
</div>
);
};
export default App;