A function that creates a new component that allows you to pass additional properties to the wrapped component.

User reference


Name Type Description
WrappedComponent ComponentType<any> The react component to wrap.
getAdditionalProps () => object A function that returns properties to pass.

Return Value

Type Description
ComponentType<any> A higher-order component that passes additional properties to the wrapped component and renders it. Call the wrapped component’s update() static method to update the properties and rerender the component.