Skip to content

v1.5.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@pfgray pfgray released this 12 Oct 01:18
· 20 commits to master since this 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>
)