title: How do I define class methods outside it in typescript reactjs?
body: <p>I want to use methods for the class as following:</p>
  
  <pre><code>class MyComponent extends React.Component&lt;Props&gt; {
  render() {
  let { date } = this.props
  let range = MyComponent.title(date)
  
  return &lt;TimeGrid {...this.props} range={range} eventOffset={15} /&gt;
  }
  }
  </code></pre>
  
  <p>My method is:</p>
  
  <pre><code>MyComponent.title = date =&gt; {
  return `My awesome week: ${date.toLocaleDateString()}`;
  };
  </code></pre>
  
  <p>But I am getting error :</p>
  
  <blockquote>
    <p>Property 'title' does not exist on type 'typeof MyComponent'</p>
  </blockquote>