title: Can I use arrow functions instead of normal functions for React Hooks?
body: <p>Is it possible to also use arrow functions with the new React Hook syntax? what will be the difference and/or could this cause problems?</p>
  
  <p>documentation syntax:</p>
  
  <pre><code>function Example() {
  
    const [count, setCount] = useState(0);
  
    return (
      &lt;div&gt;
        &lt;p&gt;You clicked {count} times&lt;/p&gt;
        &lt;button onClick={() =&gt; setCount(count + 1)}&gt;
          Click me
        &lt;/button&gt;
      &lt;/div&gt;
    );
  }
  </code></pre>
  
  <p>arrow function:</p>
  
  <pre><code> const Example = () =&gt; {
  
    const [count, setCount] = useState(0);
  
    return (
      &lt;div&gt;
        &lt;p&gt;You clicked {count} times&lt;/p&gt;
        &lt;button onClick={() =&gt; setCount(count + 1)}&gt;
          Click me
        &lt;/button&gt;
      &lt;/div&gt;
    );
  }
  </code></pre>