var React = require('react'); var UserStore = require('../stores/UserStore'); var User = React.createClass({ onSave: function() { var value = this.refs.username.getDOMNode().value.trim(); UserStore.set(value); }, render: function() { return (