A function that creates a new component that allows you to pass additional properties to the wrapped component.
Name | Type | Description |
---|---|---|
WrappedComponent | ComponentType<any> | The react component to wrap. |
getAdditionalProps | () => object | A function that returns properties to pass. |
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. |