MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / CounterContext

Interface CounterContext

context-trap/src/App.tsx:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { FC, PropsWithChildren, createContext, useContext, useState } from "react";
2
3interface CounterContext {
4 aaa: number;
5 bbb: number;
6 setAaa: (aaa: number) => void;
7 setBbb: (bbb: number) => void;
8}
9
10const context = createContext<CounterContext>({
11 aaa: 0,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected