ReactJS Style Guide
reactjsnews.com
reactjsnews.com
<input
type="text"
value={this.state.newDinosaurName}
onChange={this.inputHandler.bind(this, 'newDinosaurName')}
/> <form onChange={this.inputHandler}>
...
<input type="text" name="blah" value={this.state.blah}/>
...
</form>
inputHandler: function(event) {
actions.propagateValue({
field: event.target.name,
value: event.target.value
});
}Can you expand on this some? Is there a particular line of reasoning which lead you to this conclusion?
i think i was overreacting (pun intended) and it was a mostly unqualified opinion. my feelings were more so of inconvenience and thinking that there was little benefit to actually having form values on the state (possibly specific to my use case, which didn't require any additional logic for form values).
using the pattern mentioned in https://news.ycombinator.com/item?id=8811617 would remove a lot of work that I initially thought was necessary, or using the LinkedStateMixin from addons everywhere.
will fix. apologies for misleading
[edit]: article updated.