Vite + React
For Vite-powered React projects, the widget script goes directly in index.html.
Install#
No package install needed. Replace YOUR_PROJECT_ID with the value from /v1/projects.
Add the script#
In index.html, add this to the <head> (or before the closing </body>):
Add the container#
Inside any React component, render the container <div>. The widget script will find it by ID and inject the wall of love:
On the Free plan the container includes a small Wall of love by ShowTrust link. The widget shows it once, under your wall, so keep it inside the container. To hide it, switch off the credit in your widget settings (Pro walls are white-label) and use the bare container: <div id="showtrustto-widget"></div>.