title: define getter without setter ecma6 - react
body: <p>React-ecma6 dosent seem to allow defining getters without setters
  Is there a way of defining a getter only method and changing a value through any other method?</p>
  
  <pre><code>import React from 'react';
  export default class GetterOnly extends React.Component {
      constructor(props) {
          super(props);
          this._is_on = false;
      }
  
      on() {
          this._is_on = true;
      }
  
      get is_on() {
          return this._is_on;
      }
  
      render() {
  
      }
  }
  var _getter = new GetterOnly()
  _getter.on();
  </code></pre>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot set property is_on of #GetterOnly
    which has only a getter</p>
    
    <p>patchProperty @   makeAssimilatePrototype.js:21 (anonymous
    function) @   makeAssimilatePrototype.js:52 (anonymous
    function) @   makeAssimilatePrototype.js:51
    reconcileWithStoredPrototypes @   makeAssimilatePrototype.js:50
    assimilatePrototype   @   makeAssimilatePrototype.js:63
    patchReactClass   @   makePatchReactClass.js:40
    makeHot   @   makeMakeHot.js:33 makeExportsHot    @   makeExportsHot.js:44
    (anonymous function)  @   GetterOnly.js:139 (anonymous
    function) @   GetterOnly.js:139 (anonymous function)  @   GetterOnly.js:140
    (anonymous function)  @   app.js:5062
    <strong>webpack_require</strong>   @   app.js:556 fn   @   app.js:87 (anonymous function)  @   page.js:35 (anonymous function) @   page.js:81 (anonymous
    function) @   page.js:82 (anonymous function) @   app.js:5056
    <strong>webpack_require</strong>   @   app.js:556 fn   @   app.js:87 (anonymous function)  @   Routes.js:19 (anonymous function)   @   Routes.js:52
    (anonymous function)  @   Routes.js:53 (anonymous function)   @   app.js:4438
    <strong>webpack_require</strong>   @   app.js:556 fn   @   app.js:87 (anonymous function)  @   makoVOD.js:19 (anonymous function)  @   makoVOD.js:62
    (anonymous function)  @   makoVOD.js:63 (anonymous
    function) @   app.js:1042
    <strong>webpack_require</strong>   @   app.js:556 fn   @   app.js:87 (anonymous function)  @   multi_main:3 (anonymous function)   @   app.js:586
    <strong>webpack_require</strong>   @   app.js:556 (anonymous function) @   app.js:579 (anonymous function) @   app.js:582</p>
  </blockquote>