Hook to access the app config from a component.
The app config.
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> );} Copy
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> );}
Hook to access the app config from a component.