import React from 'react';
import ReactDOM from 'react-dom/client'; // Import the 'client' version
import { BrowserRouter as Router } from 'react-router-dom'; // Import Router
import App from './App'; // Your main App component

const root = ReactDOM.createRoot(document.getElementById('root')); // Create a root element

root.render(
  <Router>
    <App />  {/* Only one <Router> here */}
  </Router>
);