Modify the props input of the given component by applying a function of type <A>(a: A) => A over a named prop value. Useful when you can compute the new value from the old one and nothing else, and you do not need to change the prop type.
<A>(a: A) => A
Type of modified prop name.
Modified prop value type.
Name of prop to modify.
The mapping function will be applied to the prop value.
Optional
Optional displayName wrapper will be added to base component displayName. Default is computed modified given prop name.
displayName
Component to modify.
Modify the props input of the given component by applying a function of type
<A>(a: A) => A
over a named prop value. Useful when you can compute the new value from the old one and nothing else, and you do not need to change the prop type.