Created
June 4, 2022 10:20
-
-
Save RomikMakavana/805f2fc8ed8bce52552be7889bfd0e52 to your computer and use it in GitHub Desktop.
React Auth Guard Router Pages
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, { useEffect } from 'react'; | |
const Login = () => { | |
useEffect(() => { | |
console.log("Login"); | |
}, []); | |
return <div> Login Form </div> | |
} | |
export default Login; |
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, { useEffect } from 'react'; | |
const Register = () => { | |
useEffect(() => { | |
console.log("Register"); | |
}, []); | |
return <div> Register Form </div> | |
} | |
export default Register; |
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, { useEffect } from 'react'; | |
const Welcome = () => { | |
useEffect(() => { | |
console.log("Welcome"); | |
}, []); | |
return <div> Welcome </div> | |
} | |
export default Welcome; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment