Skip to content

Instantly share code, notes, and snippets.

View jakeprins's full-sized avatar

Jake Prins jakeprins

View GitHub Profile
@jakeprins
jakeprins / useAuth.tsx
Last active January 4, 2021 09:03
Authentication hook
import {
useState,
useEffect,
useContext,
createContext,
ReactNode,
} from 'react';
import { auth, db } from 'config/firebase';
const authContext = createContext({ user: {} });