title: Monkey Patching React Components
body: <p>Let's say I define a component like this:</p>
  
  <pre><code>const myComponent = class MyComponent extends React.Component {}
  </code></pre>
  
  <p>and later I would like to add a constructor to the defined component like this:</p>
  
  <pre><code>myComponent.constructor = function(props) {
    super(props)
    this.state = { hello: 'world' }
  }
  </code></pre>
  
  <p>Does anyone know if this is possible? If so, does anyone know what differences in implementation are required compared to the above? Thanks!</p>