title: Why do I keep getting The class method 'componentDidMount' must be makred either 'private' 'public' or 'protected' warnings, in my tsx files?
body: <p>I am not sure what I am supposed to mark my methods in my react class components. I am getting this error on these methods: componentDidMount, componentDidUpdate, componentWillUpdate and render</p>
  
  <p>Here is a basic component that I have: </p>
  
  <pre><code>import * as React from 'react';
  
  const { Component } = React;
  
  export default class Loading extends Component&lt;{}, {}&gt;  {
    componentDidMount() {
      console.log('....something....');
    }
    componentDidUpdate() {
      console.log('....something....');
    }
    componentWillUpdate() {
      console.log('....something....');
    }
  
    render() {
      const style = {
        background: '#f5f5f5',
        height: '100%',
        padding: '20px',
        textAlign: 'center',
        transition: 'all 0.5s linear',
        width: '100%'
      };
      return (
        &lt;div id='app-loader' className='rounded' style={style}&gt;
          &lt;div className='loader large block rounded'&gt;Loading...&lt;/div&gt;
        &lt;/div&gt;
      );
    }
  }
  </code></pre>
  
  <p>I can't put private render() etc because that breaks the component.</p>