Skip to content

Commit

Permalink
I meant push, not unshift
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdm committed Jun 1, 2015
1 parent 4acad78 commit fd02597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var Message = React.createClass({
var MessageList = React.createClass({
addMessage: function(message) {
var updated = this.state.messages;
updated.unshift(message);
updated.push(message);
this.setState({messages: updated});
},

Expand Down

0 comments on commit fd02597

Please sign in to comment.