` — A promise that resolves to the user's region code (e.g., `"US"`, `"CA"`), or `undefined` if no region has been set.
---
## Examples
### Basic usage
```jsx title="RegionDisplay.jsx" copy
import { getRegion } from 'gt-react/server';
export default async function RegionDisplay() {
const region = await getRegion(); // [!code highlight]
return Current region: {region ?? 'Not set'}
;
}
```
---
## Notes
- `getRegion` is asynchronous and must be awaited.
- Returns `undefined` if the user has not selected a region.
- The region is stored in a cookie and can be set using the [``](/docs/react/api/components/region-selector) component or [`useRegionSelector`](/docs/react/api/helpers/use-region-selector) hook.
## Next steps
- See [`useRegion`](/docs/react/api/helpers/use-region) for the client-side equivalent.
- Use [``](/docs/react/api/components/region-selector) to let users choose their region.