0.1.2 • Published 4 years ago
with-context-props-imef v0.1.2
withContextProps
Typed HOC for passing down props from generic React Context.
export const Comp = withContextProps<ContextState, WrappedCompProps>(WrappedComp, AppContext.Consumer);
Typed HOC for passing down props from generic React Context.
export const Comp = withContextProps<ContextState, WrappedCompProps>(WrappedComp, AppContext.Consumer);