by dustingetz · 12y ago · 0 comments
[0] dom callbacks actually swap! the nextState value so there are effects down there at the bottom of the view hierarchy, but that's react's fault for not letting you return the next state. e.g.
<input
value={this.state.a.b.c}
onChange={_.partial(mori.assoc_in, this.state, ['a', 'b', 'c'])} />It's amazing that we're back to immediate mode!