CreateContextSelectorReturn
Signature
type CreateContextSelectorReturn<T, P> = {
useContext: <Selected>(selector: (value: T) => Selected) => Selected;
Provider: ({
children,
params
}: {
children: ReactNode;
params?: P;
}) => JSX.Element;
withProvider: <C extends ComponentType<any>>(Component: C, params?: P) => (props: PropsOf<C>) => JSX.Element;
};