> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cdp.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# useAppConfig

```ts theme={null}
function useAppConfig(): Required<AppConfig>;
```

Hook to access the app config from a component.

## Returns

`Required`\<[`AppConfig`](/sdks/cdp-sdks-v2/frontend/@coinbase/cdp-react/Interfaces/AppConfig)>

The app config.

## Example

```tsx lines theme={null}
const MyComponent = () => {
  // Access the app config from a child component
  const appConfig = useAppConfig();
  return <div>{appConfig.appName}</div>;
}

function App() {
  return (
    <CDPReactProvider config={config}>
      <MyComponent />
    </CDPReactProvider>
  );
}
```
