The Zendesk Web Widget configuration for a react app would be similar to any other. If you're using something like create react app, you'll want to add the widget script directly to your index.html file in the public directory. If you're using Next.js, you'll need to add this to the index.js or a _document file. This will ensure that the widget is added to the DOM at the root of your app. If you need the widget only to appear on certain pages, you can add the script individually to the respective components.
댓글 2개
Diego Tonini
Tipene Hughes Hazem Osama
during my time, I tried to develop a library for web widget (not classic), available for react (also next js).
If you want to try on NPM
0
Tipene Hughes
Hey, Hazem!
The Zendesk Web Widget configuration for a react app would be similar to any other. If you're using something like create react app, you'll want to add the widget script directly to your index.html file in the public directory. If you're using Next.js, you'll need to add this to the index.js or a _document file. This will ensure that the widget is added to the DOM at the root of your app. If you need the widget only to appear on certain pages, you can add the script individually to the respective components.
I hope this helps!
Tipene
0
로그인하세요.