Provider Setup
ThePrivacyBoostProvider initializes the SDK and provides context to all child components.
Basic Setup
Provider Props
With Configuration
| Prop | Type | Required | Description |
|---|---|---|---|
config | PrivacyBoostConfig | Yes | SDK configuration |
loadingComponent | ReactNode | No | Loading UI during initialization |
errorComponent | (error) => ReactNode | No | Error UI on init failure |
children | ReactNode | Yes | Child components |