Adding country, state, and city fields to a form often means dealing with large datasets, search functionality, dependent dropdowns, and unnecessary network requests.

SonoJS provides a ready-to-use React component to handle all three levels of location selection.

Features

  • 250+ countries
  • Searchable country, state, and city selectors
  • Optional country flags
  • Lazy-loaded location data
  • Loads only the data needed for each selection
  • Designed for forms, checkout flows, and address management

Powered by @sonojs/geo

The component uses @sonojs/geo, a dedicated geographic data package available independently on npm.

It provides asynchronous APIs for accessing countries, states, and cities, with lazy-loaded data shards, caching, and TypeScript support.

You can use it independently in your own JavaScript and TypeScript projects.

Links