Untitled
unknown
plain_text
a year ago
587 B
5
Indexable
import { useState } from 'react'
import './App.css'
import { Route, Routes } from 'react-router-dom'
import LoginPage from './pages/LoginPage'
import PrivateRoute from './components/PrivateRoute'
import DashboardPage from './pages/DashboardPage'
function App() {
const [count, setCount] = useState(0)
return (
<>
<Routes>
<Route path="/login" element={<LoginPage />} />
<Route path="/dashboard" element={<PrivateRoute><DashboardPage /></PrivateRoute>} />
<Route path="/" element={<LoginPage />} />
</Routes>
</>
)
}
export default App
Editor is loading...
Leave a Comment