Q: How to Verify Widget Connections in a React Site?
How can I know if the widgets are connecting? I have a site in React; can I put the script directly in my HTML? Thank you very much!
Abdelhay_FouitaSmartWidgets
May 8, 2026A: Hello,
After creating a widget, you can embed it in 3 different ways: HTML, JavaScript, or iFrame.
For React websites, we usually recommend the JavaScript embed method, since React does not execute script tags directly inside JSX.
You can also use AI tools like ChatGPT or Cursor and simply paste the standard HTML embed code. They can easily transform it into the correct React version for you automatically.
You can also place the script directly inside your `public/index.html` file if you want the widget to load globally across the site.
To verify the connection, simply check if the widget appears correctly on your website after embedding the code.