title: Two-Way Data Binding with React and Meteor
body: <p>Is there another way of writing this? By the way, this works perfectly but I feel it could be written better:</p>
  
  <pre><code>Profile = React.createClass({
    mixins: [ReactMeteorData],
    getMeteorData() {
      return {
        currentUser: Meteor.user(),
      };
    },
    getInitialState(){
     // we add an if statement to prevent undefined errors
     // could this be written elsewhere?
      if (Meteor.user().profile) {
        this.profile =  Meteor.user().profile;
      } else {
        this.profile =  '';
      };
       return { firstname: this.profile.firstname };
     },
  
     ...
  )};
  </code></pre>