Last active
December 2, 2020 12:20
-
-
Save mentix02/09ad39adc5ace651c22f98248ec7b92a 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
import React from "react"; | |
import { useUsername } from "../store/auth/hooks"; | |
function Account() { | |
const username = useUsername(); | |
return <h2>Welcome, {username}</h2>; | |
} | |
export default Account; |
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
import React from "react"; | |
function Home() { | |
return ( | |
<div> | |
<h2>Home Page</h2> | |
</div> | |
); | |
} | |
export default Home; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment