title: Uncaught TypeError: Object (...) is not a function
body: <p>I'm very new to Preact and when I want to use hooks in Preact, I get an error:</p>
  
  <pre><code>Uncaught TypeError: Object(...) is not a function
  </code></pre>
  
  <p>And I don't know what to do and there is a little articles in web for Preact</p>
  
  <p>This is my code</p>
  
  <pre><code>import './style';
  import { useState } from 'preact';
  
  function App() {
    const [value, setValue] = useState(0);
    const increment = useCallback(() =&gt; setValue(value + 1), [value]);
  
    return (
      &lt;div&gt;
        Counter: {value}
        &lt;button onClick={increment}&gt;Increment&lt;/button&gt;
      &lt;/div&gt;
    );
  }
  
  export default App
  </code></pre>