Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

with-context-props-imef

klonkponk4MIT0.1.2TypeScript support: included

Typed HOC for passing down props from generic React Context.

readme

withContextProps

Typed HOC for passing down props from generic React Context.

export const Comp = withContextProps<ContextState, WrappedCompProps>(WrappedComp, AppContext.Consumer);