React Installation
For React applications (Create React App, Vite), add the widget code directly to index.html. The code will execute after page load.
Installation Code
Copy this code from the Parsewise admin panel and paste it into your `index.html`:<script>
window.ParsewiseConfig = { shopId: "YOUR_SHOP_ID" };
</script>
<script async src="https://releases.parsewise.ru/widget/latest/widget.iife.js"></script>
index.html Example
Here's how your `index.html` should look with the widget installed:<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My App</title>
<!-- Parsewise Widget -->
<script>
window.ParsewiseConfig = { shopId: "YOUR_SHOP_ID" };
</script>
<script async src="https://releases.parsewise.ru/widget/latest/widget.iife.js"></script>
</head>
<body>
<div id="root"></div>
</body>
</html>