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.

Top comments (1)
Looks like a useful solution for implementing dependent Country, State, and City dropdowns in React forms. The searchable selectors and caching approach are particularly helpful. Also worth exploring react-country-state-city as alternatives for comparison.