zack commited on
Commit
816c2fe
1 Parent(s): 3629bf4

feat: enhance Chat-nFace UI interactions :sparkles:

Browse files
Files changed (1) hide show
  1. frontend/pages/index.js +2 -2
frontend/pages/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
  import ReactDOM from 'react-dom/client';
3
  import App from './_app';
4
  import reportWebVitals from '../src/reportWebVitals';
5
 
6
  // Function to render the app only on the client-side
7
- export default function renderApp() {
8
  const root = ReactDOM.createRoot(document.getElementById('Gradio-Flow'));
9
  root.render(
10
  <React.StrictMode>
 
1
+ import React, { useEffect } from 'react';
2
  import ReactDOM from 'react-dom/client';
3
  import App from './_app';
4
  import reportWebVitals from '../src/reportWebVitals';
5
 
6
  // Function to render the app only on the client-side
7
+ const renderApp = () => {
8
  const root = ReactDOM.createRoot(document.getElementById('Gradio-Flow'));
9
  root.render(
10
  <React.StrictMode>