Skip to content

Instantly share code, notes, and snippets.

View ELI7VH's full-sized avatar
💭
Doing a thing.

Elijah Lucian ELI7VH

💭
Doing a thing.
View GitHub Profile
@ELI7VH
ELI7VH / react-context-boilerplate.tsx
Last active April 26, 2024 07:48
React Context Boiler Plate - Typescript
import React, { createContext, useContext, useState, useEffect } from "react"
type Props = {
children: React.ReactNode
}
type Context = {
count: number
increment: () => void
}