title: React/Typescript - expects at least '3' arguments, but the JSX factory 'React.createElement' provides at most '2'. TS622
body: <p>I have this component:</p>
  <pre><code>const TheBarTitle = (
      theClass: any,
      columnTitle: string,
      onClickAction: any,
  ) =&gt; {
      return (
          &lt;div
              className={theClass}
              title=&quot;Click to add this filter&quot;
              onClick={onClickAction}
          &gt;
              {columnTitle}
          &lt;/div&gt;
      );
  };
  </code></pre>
  <p>Which is used this way:</p>
  <pre><code> render: (rowData): any =&gt; {
                                  return (
                                      &lt;div className={classes.contentxyz}&gt;
                                          .........                                    &lt;/div&gt;
                                  );
                              },
                          },
                          {
                              title: (
                                  &lt;TheBarTitle
                                      theClass={classes.contentxyz}
                                      columnTitle=&quot;THIS IS THE TITLE&quot;
                                      onClickAction={(e: any) =&gt;
                                          this.handleTooltip(
                                              e,
                                              'theeetitle:',
                                          )
                                      }
                                  /&gt;
                              ),
  
  ....
  </code></pre>
  <p>However I get the error: <code>Tag 'TheBarTitle' expects at least '3' arguments, but the JSX factory 'React.createElement' provides at most '2'.  TS622</code></p>
  <p>I am using actually 3 arguments. Any idea what I am doing wrong and it sees only 2?</p>