useNovu
Learn how to use the useNovu hook to access the Novu client instance in your React application
The useNovu
hook provides direct access to the Novu client instance from anywhere in your application. This hook must be used within a component that is wrapped by the NovuProvider
.
Return Value
Prop | Type | Default |
---|---|---|
novu? | Novu | - |
Example Usage
Here's how to use the useNovu
hook to interact with the Novu client:
Managing Individual Notifications
The Novu client provides methods for managing individual notifications:
Listening to Real-time Events
The Novu client allows you to listen for real-time events:
The Novu client instance provides access to all the functionality available in the Headless API. For a complete list of methods and events, refer to the API documentation.