v1.7.0
Pre-release
Pre-release
Changes:
- Added fp-ts Monad typeclass for chainable components:
import { chainableComponent } from 'chainable-components/dist/lib/fpts'
- Added
DoBuilder
export which binds the generalizedDo
from fp-ts-contrib to chainable componentsL
import { DoBuilder } from 'chainable-components/dist/lib/fpts'
DoBuilder
.bind('outer', withState(0))
.bindL('inner', ({outer}) => withState(10))
.done()
.render(({inner, outer}) => (
<div>...</div>
))
- Added
ChainableComponent.allT()
which uses improved mapped type support for a simpler version ofall
without losing inference:
ChainableComponent.allT(
withState('string value'),
withState(1),
).render(([str, num]) => (
<div></div>
))
- Improved type inference for
fromRenderProp
andfromNonStandardRenderProp
.