autoflow icon indicating copy to clipboard operation
autoflow copied to clipboard

add displayName property to react generated functions

Open jeffbski opened this issue 13 years ago • 2 comments

By setting displayName property on react generated functions, the anonymous functions can have meaningful names in the debugger and for profiling.

http://www.alertdebugging.com/2009/04/29/building-a-better-javascript-profiler-with-webkit/ http://pmuellr.blogspot.com/2009/06/debugger-friendly.html

jeffbski avatar Feb 07 '12 18:02 jeffbski

Similarly add sourceURL property as well, for Firefox debugging support.

jeffbski avatar Feb 07 '12 18:02 jeffbski

Thanks.

On Wed, Jan 22, 2014 at 6:44 AM, Sébastien Lorber [email protected]:

@jeffbski https://github.com/jeffbski hello,

It seems fixed according to the JSX compiler: http://facebook.github.io/react/jsx-compiler.html

— Reply to this email directly or view it on GitHubhttps://github.com/jeffbski/autoflow/issues/4#issuecomment-33018228 .

Jeff Barczewski Founder of CodeWinds http://codewinds.com/ Web developer training - screencasts, ebooks, webinars

jeffbski avatar Jan 23 '14 14:01 jeffbski