Install guides (31)
Add Ishara to React (Vite)
Add the feedback widget to a React app built with Vite by pasting one script tag before the closing body tag of your index.html.
- Where it goes
index.html, before</body>- Allowed domains
- Your own domain (set when you add the site)
- Time
- About 2 minutes
Steps
In Ishara, open Sites → your site → Install and copy the line under Add the line to your site. Your site’s key is already in it:
<script src="https://useishara.com/w.js" data-site="pk_…" defer></script>
Open
index.htmlat the root of your project (not insidepublic/) and paste the line just before</body>, after your app’s module script. Vite only processes module scripts and stylesheets in this file, so it leaves the tag as it is:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>My app</title> </head> <body> <div id="root"></div> <script type="module" src="/src/main.tsx"></script> <script src="https://useishara.com/w.js" data-site="pk_…" defer></script> </body> </html>Build and deploy the app.
Open your site. Back on the Install page, Check it’s live turns into The widget is live as soon as the widget loads. Then open the Reviewer link from the same page: only people who open it see Leave a note.
Good to know
- Every route of a single-page app is served from this one
index.html, so one tag covers the whole app. - Vite adds no Content Security Policy. If your host sends one, allow the widget’s origin in
script-src(details).
Next
Once reviewers leave notes, your coding agent can apply them. The widget’s options (language, position, colour, launcher) are in the docs.