title: Should I follow Visual Studio Code suggesting a convert to named function in javascript?
body: <p>I use the arrow function style quite alot in my ReactJS apps (all of them use functional style with hooks).</p>
  <pre><code>const handleKeyDown = (e) =&gt; {
      doStuff(e.keyCode);
  }
  </code></pre>
  <p>Visual Studio Code keeps suggesting here, that I use a named function like:</p>
  <pre><code>function handleKeyDown(e) {
      doStuff(e.keyCode);
  }
  </code></pre>
  <p>What's best practice here? I have read, that arrow function and named function are equivalent in javascript. Is this not true? Does using named function have any benefit here?</p>