Created
June 4, 2022 10:22
-
-
Save RomikMakavana/ef86a9797d084307983e71f0d9032158 to your computer and use it in GitHub Desktop.
React Auth Guard Routes AuthRoutes.js
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 React from "react"; | |
import { Route } from "react-router-dom"; | |
import AuthGuard from "../guards/AuthGuard"; | |
import Welcome from "../pages/Welcome"; | |
const AuthRoutes = [ | |
<Route key="Welcome" path="/" element={<AuthGuard component={<Welcome />} />} /> | |
] | |
export default AuthRoutes; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment