# react-city-selector

> a react city selector for Chinese Provinces

Latest version **1.0.8** (published 2018-10-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-city-selector
pnpm add react-city-selector
yarn add react-city-selector
bun add react-city-selector
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2018-10-19 |
| First published | 2018-07-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 168.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | gaozy |
| Maintainers | gaozy |
| Keywords | react, city, selector |

## Links

- npm: https://www.npmjs.com/package/react-city-selector
- Repository: https://github.com/gaoziyang-dailyAccount/react-city-selector_China
- Homepage: https://github.com/gaoziyang-dailyAccount/react-city-selector_China#readme
- Issues: https://github.com/gaoziyang-dailyAccount/react-city-selector_China/issues
- npm.io page: https://npm.io/package/react-city-selector

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.4.1
- [react-dom](https://npm.io/package/react-dom.md) ^16.4.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2018-10-19
- 1.0.7 — 2018-07-02
- 1.0.6 — 2018-07-02
- 1.0.5 — 2018-07-02
- 1.0.4 — 2018-07-02
- 1.0.3 — 2018-07-02
- 1.0.1 — 2018-07-02
- 1.0.0 — 2018-07-02

## README

# react-city-selector_China
**A ReactJS component to render a city selector for Chinese Cities.**
## Installation

Install `react-city-selector` with [npm](https://www.npmjs.com/):

```
$ npm install react-city-selector
```
## Usage

Very easy to use. Just provide props with total amount of things that you want to display on the page.

```js
import React, { Component } from "react";
import ReactDOM from "react-dom";
import CitySelector from "react-city-selector";

ReactDOM.render(
    <CitySelector onTabsChange={onTabsChange} onCityChange={onCityChange}/>,  document.getElementById("root")
)
```
## Params

Name | Type | Default | Description
--- | --- | --- | --- |
`onTabsChange` | Function | | cities’ first letter tabs change handler
`onCityChange` | Function | | selected city change handler. Receive selected name as arg
## example image
<img src="http://chuantu.biz/t6/338/1530608529x-1376440150.png" width="600" height="300"/>

---
_Source: https://npm.io/package/react-city-selector · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
