fix: added targets for browser environment

This commit is contained in:
Siddhant Rai
2024-06-03 12:57:53 +05:30
parent f2c328d212
commit 72a1892058
3 changed files with 17 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import { createRoot } from 'react-dom/client';
import React from 'react';
import { createRoot } from 'react-dom/client';
import { DocsGPTWidget } from './components/DocsGPTWidget';
const renderWidget = (elementId: string, props = {}) => {