Agregar el login
This commit is contained in:
15
src/main.tsx
15
src/main.tsx
@@ -1,9 +1,14 @@
|
||||
import { StrictMode } from 'react'
|
||||
// import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import App from './App.tsx'
|
||||
import App from './pages/App.tsx'
|
||||
import { BrowserRouter, Route, Routes } from "react-router";
|
||||
import Login from './pages/Login.tsx';
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<App />} />
|
||||
<Route path="/login" element={<Login />} />
|
||||
</Routes>
|
||||
</BrowserRouter>,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user