title: useCallback vs simple function
body: <p>When I should use useCallback and when simple array function?
  Or maybe I shouldn't use second approach?</p>
  
  <pre><code>const MyCompenent = (props) =&gt; {
    const handleClick = useCallback(()=&gt;{
      //do stuff
    })
    return(
      &lt;SomeCompnent onClick={handleClick} /&gt;
    )
  }
  // or
  const MyCompenent = (props) =&gt; {
    return(
      &lt;SomeCompnent onClick={()=&gt; {/*do stuff*/}} /&gt;
    )
  }
  </code></pre>