Skip to content

Instantly share code, notes, and snippets.

@abhiaiyer91
Created Mar 27, 2021
Embed
What would you like to do?
import React from "react";
import { useAuth } from "../hooks/useAuth";
// .... other code .... //
export default function Login() {
const { login } = useAuth();
return (
<section style={wrapper}>
<div style={loginCard}>
<h1 style={header}>Welcome to the App</h1>
<p style={paragraph}>You can try out logging in below!</p>
<button
style={button}
onClick={() => {
return login().catch((e) => {
console.error(e);
});
}}
>
LOG IN
</button>
</div>
</section>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment