minor design change

This commit is contained in:
ManishMadan2882
2024-08-20 04:23:16 +05:30
parent 921efcbf4b
commit dd5c1ec9ed
3 changed files with 5 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ import React from 'react';
import { createRoot } from 'react-dom/client';
import { DocsGPTWidget } from './components/DocsGPTWidget';
const renderWidget = (elementId: string, props = {}) => {
const root = createRoot(document.getElementById(elementId) as HTMLElement);
root.render(<DocsGPTWidget {...props} />);