Created
August 8, 2022 11:41
-
-
Save zinedkaloc/bbfb08d12d145bf7cd3afbf164218af0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BrowserRouter, Routes, Route } from 'react-router-dom'; | |
import { Home } from './components/Home'; | |
import { Signup } from './components/Signup'; | |
import { Verification } from './components/Verification'; | |
import { Redirect } from './components/Redirect'; | |
import { Login } from './components/Login'; | |
import { AuthProvider } from './contexts/Auth'; | |
export default function App() { | |
return ( | |
<div> | |
<BrowserRouter> | |
<AuthProvider> | |
<Routes> | |
<Route path="/" element={<Home />} /> | |
<Route path="/signup" element={<Signup />} /> | |
<Route path="/auth-redirect" element={<Redirect />} /> | |
<Route path="/verification" element={<Verification />} /> | |
<Route path="/login" element={<Login />} /> | |
</Routes> | |
</AuthProvider> | |
</BrowserRouter> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment