Reference

createContext

Creates a context object with Provider and Consumer entries.

Signature

function createContext<T>(defaultValue: T): ReactCompatContext<T>