How can i use react-addons?
I used to do it in gem react-rails like this
var index, records;
index = this.state.records.indexOf(record);
records = React.addons.update(this.state.records, {
$splice: [[index, 1, data]]
});
return this.replaceState({
records: records
});
how would i use React.addons.update in react_o_rails?