Created
October 18, 2022 02:47
-
-
Save tararoutray/ec38cf91b0c208bd8aaff07adc072062 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<BrowserRouter basename={'/'}> | |
<Routes> | |
<Route path='/auth' element={<Auth />}> | |
<Route path='login' element={<Login />} /> | |
</Route> | |
<Route path="/" element={<App />}> | |
<Route path='' element={ | |
<ProtectedRoute> | |
<Home /> | |
</ProtectedRoute> | |
} /> | |
</Route> | |
</Routes> | |
</BrowserRouter> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment