A Higher Order Component (HOC) for mapping DynamicComponentControlledProps to a component's props without the hassle of creating a wrapper component.
You will need to provide the type parameters to have this function correctly.
The proptypes for Component.
A union of the names of the props in Props
that need to be mapped to DynamicComponentControlledProps via
propMap.
type PropNamesToMap = "inputValue" | "onInputValueChange" | "inputDisabled";
Do not use string or all props will be removed from the PropTypes!
The type of the
DynamicComponentControlledProps.value to be used by Component.
The React component to wrap.
The map of DynamicComponentControlledProps keys
to PropNamesToMap.
A React component, ready to be used in a
DynamicComponent, with its
DynamicComponentControlledProps mapped to the Component as
specified by the propMap.
Generated using TypeDoc
The proptypes for the component returned by makeDynamic.