JSFiddle - React, Tailwind, and code Playground

HTML

Look in the browser console.

JavaScript

const foo = () => {
    throw new Error();
};
console.log(foo.name); // "foo"
foo();                 // Stack trace will show the name "foo"