import { StrictMode, Suspense, lazy } from 'react' import { createRoot } from 'react-dom/client' import { BrowserRouter, Routes, Route } from 'react-router-dom' import './index.css' import { CartProvider } from './context/CartContext.jsx' const LandingPage = lazy(() => import('./pages/LandingPage.jsx')) const App = lazy(() => import('./App.jsx')) const Checkout = lazy(() => import('./pages/Checkout.jsx')) // Fallback loader for Suspense const LoadingFallback = () => (
CARGANDO...
); createRoot(document.getElementById('root')).render( }> } /> } /> } /> , )