UNPKG

@excentone/spfx-react

Version:

Contains custom ReactJs components and hooks intended to use when developing SharePoint Framework (SPFx) Web components.

10 lines (8 loc) 379 B
import React, { createContext } from "react"; export const createAuthorizationContext = (initialValues) => { return createContext(initialValues); }; export const createAuthorizationContextProvider = (context) => { return ({ children, ...value }) => (React.createElement(context.Provider, { value: value }, children)); }; //# sourceMappingURL=AuthorizationContext.js.map