title: TS2339: Property 'focus' does not exist on type '{}'. with React typescript
body: <p>I have a typescript code for JSX class</p>
  
  <pre><code>export class SearchForm extends React.PureComponent&lt;Props, State&gt; {
  
    public inputRef: React.RefObject&lt;{}&gt;;
  
    constructor(props: any) {
      super(props)
      this.inputRef = React.createRef()
    }
  
    public componentDidMount(): void {
        this.inputRef.current.focus()
        this.inputRef.current.select()
    ...
  </code></pre>
  
  <p>Now when I try to compile this code, I have a bunch of errors:</p>
  
  <pre><code>ERROR in ...
  TS2339: Property 'className' does not exist on type '{}'.
  
  ERROR in ...
  TS2339: Property 'focus' does not exist on type '{}'.
  </code></pre>
  
  <p>What is an issue?</p>