Created
February 12, 2019 14:29
-
-
Save brygrill/fe36014c103577490fa04031058def75 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
// App.js | |
const App = () => { | |
// state | |
const [authed, setAuthed] = useState(false); | |
// render | |
// if not authed display signin page | |
if (!authed) { | |
return <SignIn />; | |
} | |
// if authed, display users agol items | |
return <Items />; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment