title: How to access an object member from event callback function in a class object on Ecmascript 6 (ES6)
body: <p>I've got this :</p>
  
  <pre><code>class Register {
  
      render(){
          return (&lt;div onchange={this.aFunction}&gt;&lt;/div&gt;)
      };
  
      aFunction(event){
          this.printSomething();  //Uncaught TypeError: undefined is not a function
      }
  
      printSomething(){
          console.log('Horray');
      }
  
  }
  </code></pre>
  
  <p>How can I call printSomething from within aFunction? Es6 really confuses me.</p>
  
  <p>Thank you.</p>