UNPKG

@xyo-network/react-shared

Version:

Common React library for all XYO projects that use React

7 lines (4 loc) 279 B
import { createContext } from 'react' import type { ContextExState } from './State.ts' // eslint-disable-next-line @eslint-react/naming-convention/context-name export const createContextEx = <T>() => createContext<T & ContextExState>({ provided: false } as T & ContextExState)