@excentone/spfx-react
Version:
Contains custom ReactJs components and hooks intended to use when developing SharePoint Framework (SPFx) Web components.
11 lines (10 loc) • 586 B
TypeScript
import React, { FC } from "react";
import { IServiceScopeContextProps } from "./ServiceScopeContext.types";
export declare const ServiceScopeContext: React.Context<IServiceScopeContextProps>;
/**
* A higher-order component (HOC) for providing/cascading the ServiceScopeContext 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 ServiceScopeContextProvider: FC<IServiceScopeContextProps>;