UNPKG

@fewings/react

Version:
7 lines (4 loc) 257 B
import { Context } from 'react'; declare const createContext: <T extends unknown>(initialValue: T) => Context<T>; declare const useContextSelector: <T, R>(context: Context<T>, selector: (value: T) => R) => R; export { createContext, useContextSelector };