title: React Hooks in TypeScript to Classes
body: <p>I'm not use React Hook in TypeScript but I have a few lines of code like below:</p>
  
  <pre><code>const [columns] = React.useState&lt;Column[]&gt;([
      { name: 'product', title: 'Product' },
      { name: 'region', title: 'Region' },
      { name: 'amount', title: 'Sale Amount' },
      { name: 'saleDate', title: 'Sale Date' },
      { name: 'customer', title: 'Customer' },
    ]);
    const [rows] = React.useState&lt;ISale[]&gt;(sales);
    const [pageSizes] = React.useState&lt;number[]&gt;([5, 10, 15]);
    const [currencyColumns] = React.useState&lt;string[]&gt;(['amount']);
  </code></pre>
  
  <p>I want to use these React Hook in Class but I don't know how to convert them!</p>
  
  <p>Can someone help me? Thanks!</p>