Add Profunctor implementation
promap
can be thought of as a shorthand for doing contramap
and map
at the same time. The first argument to it is the function that is going to be used to contramap
and the second is the one to be used to map
:
const Header = Html.Div
.promap(
({title}) => ({children: title}),
setDisplayName('Header')
)