Last active
June 5, 2022 21:55
-
-
Save alperbayram/d76a845f91a179cf74b0cc00f210f480 to your computer and use it in GitHub Desktop.
Routers
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
<Router> | |
<Navbar /> | |
<Routes> | |
<Route exact path="/" element={<Home />} /> | |
<Route exact path="/product" element={<Product />} /> | |
<Route exact element={<ProtectedRoutes />}> | |
<Route exact path="/dashboard" element={<Dashboard />} /> | |
</Route> | |
<Route exact path="*" element={<Error404 />} /> | |
</Routes> | |
</Router> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment