Skip to content

Instantly share code, notes, and snippets.

View je4npw's full-sized avatar
:shipit:
Working from home

Je4nPw je4npw

:shipit:
Working from home
View GitHub Profile
import { createContext, ReactNode, useEffect, useState } from 'react'
type Theme = 'light' | 'dark';
type ThemeContextProviderProps = {
children: ReactNode;
}
type ThemeContextType = {
theme: Theme;