v1.5.2
Pre-release
Pre-release
Adds DoRender
, which is like Do
, but automatically renders your Chainable chain:
ChainableComponent.DoRender(
withState(5),
() => withState(5),
() => withState('foo'),
(foo, inner, outer) =>
<div>
{foo.value}
<div>outer: {outer.value}</div>
<button onClick={() => outer.update(outer.value + 1)}>+</button>
<div>inner: {inner.value}</div>
<button onClick={() => inner.update(inner.value + 1)}>+</button>
</div>
)