New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-city-selector

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-city-selector

a react city selector for Chinese Provinces

latest
Source
npmnpm
Version
1.0.8
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

react-city-selector_China

A ReactJS component to render a city selector for Chinese Cities.

Installation

Install react-city-selector with npm:

$ 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.

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

NameTypeDefaultDescription
onTabsChangeFunctioncities’ first letter tabs change handler
onCityChangeFunctionselected city change handler. Receive selected name as arg

example image

Keywords

react

FAQs

Package last updated on 19 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts