@project44-manifest/react
Version:
Manifest Design System react components
12 lines • 428 B
TypeScript
import * as React from 'react';
export interface CreateContextOptions {
/** The display name of the context */
name?: string;
}
declare type CreateContextReturn<T> = [React.Provider<T>, () => T, React.Context<T>];
/**
* Creates react context with a provider and hook.
*/
export declare function createContext<T>(options?: CreateContextOptions): CreateContextReturn<T>;
export {};
//# sourceMappingURL=context.d.ts.map