title: Can we use functional component and react hook with ag-grid table?
body: <p>I have error when I use ag-grid and react hook in one time. Can I solve this problem?
  I have problem like "gridApi.paginationGoToNextPage is not a function".</p>
  
  <pre><code>  const onBtNext = () =&gt; {
      setTestVar(5);//this is var that defined via react hook, if I not delete this, I will have error
      gridApi.paginationGoToNextPage()
      console.log(gridApi.paginationGetTotalPages())
    }
  </code></pre>
  
  <p>This code work perfect if I not use react hook, but I neeed in it</p>