@excentone/spfx-react
Version:
Contains custom ReactJs components and hooks intended to use when developing SharePoint Framework (SPFx) Web components.
11 lines (10 loc) • 565 B
TypeScript
import React, { FC } from "react";
import { IComponentContextProps } from "./ComponentContext.types";
export declare const ComponentContext: React.Context<IComponentContextProps>;
/**
* A higher-order component (HOC) for providing/cascading the ComponentContext properties.
* @param props The properties to pass to the component.
* @returns A new react provider component.
* @remarks Use this instead of repeatedly calling the `ComponentContext.Provider` and providing the context.
*/
export declare const ComponentContextProvider: FC<IComponentContextProps>;