> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: useGlobalProps()

> **useGlobalProps**(): [`GlobalProps`](/next/api/react/Types/GlobalProps.md)

A React Hooks for you to get `lynx.__globalProps`.
With `globalPropsMode: 'event'`, the component re-renders when `lynx.__globalProps` changes;
in the default `'reactive'` mode, updates arrive through a full re-render.

## Returns

[`GlobalProps`](/next/api/react/Types/GlobalProps.md)

## Example

```ts
function App() {
  const globalProps = useGlobalProps();

  globalProps.someProperty // use it
}
```
