title: Error: Type 'void' is not assignable to type 'ReactNode'
body: <p>I'm getting an error while calling the function, this is just for practice so I have kept everything inside <em>App.tsx</em>. My class looks like this:</p>
  <pre><code>enum Actor {
    None = '',
  }
  
  const initializeCard = () =&gt; {
    //some logic here
    return card;
  }
  
  export default class App extends Component&lt;{}, State&gt; {
    state: State ={
      card: initializeCard()
    }
  
    public renderRows = () =&gt; {
      const { card } = this.state;
      board.map((actor, index) =&gt; this.renderRow(actor, index));
    }
  
    public renderRow = (actor: Actor, index: number) =&gt; {
      return(
        &lt;div className=&quot;cell&quot;&gt;
  
        &lt;/div&gt;
      )
    }
  
    public render() {
      return (
        &lt;div className=&quot;App&quot;&gt;
          &lt;div&gt;
              { this.renderRows() } // Here I'm getting the error
          &lt;/div&gt;
        &lt;/div&gt;
      )
    }
  }
  </code></pre>
  <p>My <em>Package.json</em> looks like:</p>
  <pre><code>&quot;dependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^4.2.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^9.3.2&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^7.1.2&quot;,
      &quot;@types/jest&quot;: &quot;^24.0.0&quot;,
      &quot;@types/node&quot;: &quot;^12.0.0&quot;,
      &quot;@types/react&quot;: &quot;^16.9.0&quot;,
      &quot;@types/react-dom&quot;: &quot;^16.9.0&quot;,
      &quot;react&quot;: &quot;^16.13.1&quot;,
      &quot;react-dom&quot;: &quot;^16.13.1&quot;,
      &quot;react-scripts&quot;: &quot;3.4.1&quot;,
      &quot;typescript&quot;: &quot;~3.7.2&quot;
    }
  </code></pre>
  <p>The complete error is as following:</p>
  <blockquote>
  <p>Type 'void' is not assignable to type 'ReactNode'.ts(2322)
  index.d.ts(1348, 9): The expected type comes from property 'children'
  which is declared here on type
  'DetailedHTMLProps&lt;HTMLAttributes, HTMLDivElement&gt;'</p>
  </blockquote>
  <p>I've searched for the solutions for this error and found <a href="https://stackoverflow.com/questions/56213991/getting-an-error-type-void-is-not-assignable-to-type-reactnode/56214327">this</a> but I couldn't solve my problem with this solution. Please let me know how can I fix this. Thanks.</p>