var MenuCounter = React.createClass({ componentDidMount: function () { socket.on('gatherCount', this.updateCount) }, updateCount: function (data) { this.setProps({count: data.count}); }, render: function () { return (