Expand description
Port of NameAnonymousFunctions from TypeScript.
Generates descriptive names for anonymous function expressions based on how they are used (assigned to variables, passed as arguments to hooks/functions, used as JSX props, etc.). These names appear in React DevTools and error stacks.
Conditional on env.config.enable_name_anonymous_functions.
Functionsยง
- name_
anonymous_ functions - Assign generated names to anonymous function expressions.