title: How to access a static function from a component instance in react?
body: <p>I have a component with a number of static functions defined for it(through the <code>statics</code> property in the component definition). I need to access one of these static functions in the lifecycle method <code>componentDidMount</code>. I tried the following</p>
  
  <ul>
  <li><code>this</code> object has a <code>statics</code> property, but that seems to be <code>null</code> always</li>
  <li><code>this</code> object also has a <code>_owner</code>, which in turn has a <code>statics</code> property. Again, that is always <code>null</code></li>
  </ul>
  
  <p>Then I tried <code>this.constructor.&lt;static_function&gt;</code>. This worked for me. I just wanted to know whether this is the right way to access static functions defined for a component or is there something else that I am unaware of. </p>