NovuProvider
Learn how to use the NovuProvider component to set up the Novu context in your React application
The NovuProvider
is the top-level component that provides the Novu instance to the rest of the hooks through the context.
Usually, it's placed somewhere in the root of your application, which makes the hooks accessible throughout the application.
Props
Prop | Type | Required | Description |
---|---|---|---|
subscriberId | string | Yes | The unique identifier of the subscriber |
applicationIdentifier | string | Yes | Your application identifier from Novu |
subscriberHash | string | No | HMAC encryption hash for the subscriber |
backendUrl | string | No | Custom backend URL for self-hosted instances |
socketUrl | string | No | Custom socket URL for self-hosted instances |
children | ReactNode | Yes | The child components that will have access to the Novu context |