JSPM

turkey-cities-towns

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q7956F
  • License ISC

React hooks to list Turkey cities and towns

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;