Displaying 1 to 3 from 3 results

babel-plugin-transform-react-stateless-component-name - Adds a display name to the stateless component in the React Dev Tools

  •    Javascript

Adds a display name to the stateless component in the React Dev Tools. Note: Now will add displayName property to functions as well to help with Snapshot testing.

stack-displayname - Show custom function names in error stack traces of V8 (Node.js)

  •    Javascript

Chromium, Firefox and Safari agreed and implemented ability to set custom string as function name via non-standard property displayName on function instance. You can see those custom names in debugger stack and so easier track source of error in long traces of anonymous functions.