index.tsx 489 B

123456789101112131415161718192021
  1. import React from 'react';
  2. import ReactDOM from 'react-dom/client';
  3. import { HashRouter } from 'react-router-dom';
  4. import './styles/tailwind.css';
  5. import App from './App';
  6. import './index.css';
  7. const rootElement = document.getElementById('root');
  8. if (!rootElement) {
  9. throw new Error("Could not find root element to mount to");
  10. }
  11. const root = ReactDOM.createRoot(rootElement);
  12. root.render(
  13. <React.StrictMode>
  14. <HashRouter>
  15. <App />
  16. </HashRouter>
  17. </React.StrictMode>
  18. );