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