0.0.1-0 • Published 6 years ago
refolder v0.0.1-0
refolder
Fold the render props and HOCs.
import fold from 'refolder'
const withValue = self => lift => lift({
...self.props,
value: 1,
})
const enhance = fold(
withValue,
)
const Button = ({children, value}) => (
<>
<p>value: {value}</p>
<button>
{children}
</button>
</>
)