github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/webui/src/main.tsx (about)

     1  import React from 'react';
     2  import { createRoot } from 'react-dom/client';
     3  
     4  // styles
     5  import 'bootstrap/dist/css/bootstrap.css';
     6  import './styles/globals.css';
     7  
     8  // main page
     9  import {IndexPage} from './pages';
    10  
    11  const container = document.getElementById('root');
    12  if (!container) throw new Error("Failed to find root element!");
    13  
    14  const root = createRoot(container);
    15  root.render(<IndexPage />);