Skip to main content
function useConfig(): {
  config: Config;
};
Hook to get the CDP being used by the SDK.

Returns

{
  config: Config;
}

config

config: Config;

Example

function App() {
  const { config } = useConfig();

  return (
    <div>
      <p>Project ID: {config.projectId}</p>
    </div>
  );
}