Created
October 9, 2020 00:09
-
-
Save mbrown3321/ee72d8c0f658c301153c0728015fcb2b to your computer and use it in GitHub Desktop.
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 { Navbar, Nav, Button } from "react-bootstrap" | |
import { useAuth0 } from "@auth0/auth0-react"; | |
import 'bootstrap/dist/css/bootstrap.min.css'; | |
const App = () => { | |
const { loginWithRedirect } = useAuth0(); | |
return ( | |
<div> | |
<Navbar bg="dark" variant="dark"> | |
<Navbar.Brand href="#home">Auth0</Navbar.Brand> | |
<Nav className="ml-auto"> | |
<Button onClick={() => loginWithRedirect()}>Login</Button> | |
</Nav> | |
</Navbar> | |
</div> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment