Learn how to add a Novu-Powered In-App Inbox to your React app
Novu provides the @novu/react
package that helps to add a fully functioning Inbox to your web application in minutes. Let’s see how easily you can use it in your application.
Install the Inbox package
Add the inbox code to your react file
You can find the applicationIdentifier
in the Novu Dashboard under the API keys page.
The subscriberId
is the unique identifier of the user in your application, learn more about subscribers here.
Novu uses the routerPush
prop to make your notifications navigatable. We will automatically pass the redirect.url
from your workflow definitions to the routerPush
prop.
European Region Instructions
If you are using the European region in novu, you need to set the backendUrl
and socketUrl
props.
Trigger a notification
Now that you have the inbox component added to your application, you can trigger an Inbox notification to see it in action. To create your first workflow, follow our quickstart guide.
The Inbox Component
Learn how to customize the inbox with your own branding and design.
Learn more about the composable components of the inbox.
The Inbox is not loading properly.
Possible reasons for the Inbox not loading properly:
How to fix CORS error with Inbox?
Our Inbox is configures for all hosts. Please disable root level withCredentials
config in axios or fetch http requests.
Learn how to add a Novu-Powered In-App Inbox to your React app
Novu provides the @novu/react
package that helps to add a fully functioning Inbox to your web application in minutes. Let’s see how easily you can use it in your application.
Install the Inbox package
Add the inbox code to your react file
You can find the applicationIdentifier
in the Novu Dashboard under the API keys page.
The subscriberId
is the unique identifier of the user in your application, learn more about subscribers here.
Novu uses the routerPush
prop to make your notifications navigatable. We will automatically pass the redirect.url
from your workflow definitions to the routerPush
prop.
European Region Instructions
If you are using the European region in novu, you need to set the backendUrl
and socketUrl
props.
Trigger a notification
Now that you have the inbox component added to your application, you can trigger an Inbox notification to see it in action. To create your first workflow, follow our quickstart guide.
The Inbox Component
Learn how to customize the inbox with your own branding and design.
Learn more about the composable components of the inbox.
The Inbox is not loading properly.
Possible reasons for the Inbox not loading properly:
How to fix CORS error with Inbox?
Our Inbox is configures for all hosts. Please disable root level withCredentials
config in axios or fetch http requests.