File size: 528 Bytes
816c2fe
9bcd0c7
aa0a829
a053984
9bcd0c7
b694625
816c2fe
b694625
 
 
 
 
 
 
 
 
 
 
 
9bcd0c7
3629bf4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import React, { useEffect } from 'react';
import ReactDOM from 'react-dom/client';
import App from '../src/App';
import reportWebVitals from '../src/reportWebVitals';

// Function to render the app only on the client-side
const renderApp = () => {
  const root = ReactDOM.createRoot(document.getElementById('Gradio-Flow'));
  root.render(
    <React.StrictMode>
      <App/>
    </React.StrictMode>
  );
};

if (typeof window !== 'undefined') {
  // Ensure this code runs only in the browser
  renderApp();
}

reportWebVitals();