Babel plugin that automatically adds displayName properties to React class components created with createClass
Overall
score
96%
Cooperate with React JSX transforms in classic and automatic runtimes
Plugin included
100%
100%
Classic JSX runtime
100%
100%
Automatic JSX runtime
100%
100%
Filename inference
100%
100%
DisplayName injection
100%
100%
Validate React.createClass / createReactClass calls with single object argument
Plugin setup
100%
100%
Valid transform
100%
100%
Multiple args guard
100%
100%
Non-object guard
100%
100%
DisplayName preservation
100%
100%
Crawl nested ancestry for names across assignments, object properties, and member expressions
Plugin wired
100%
100%
Property inference
100%
100%
Member assignment
100%
100%
Wrapped assignment
100%
100%
Preserves explicit
100%
100%
Infer displayName for default exports from file or directory name
Plugin Included
100%
100%
File Basename Inference
100%
100%
Index Folder Fallback
100%
100%
Preserves Existing
100%
100%
Uses Transform Output
100%
100%
Inject displayName from surrounding identifiers
Plugin enabled
0%
0%
Variable names
100%
100%
Member targets
100%
100%
Object keys
100%
100%
Preserves existing
100%
100%
Preserve existing displayName and skip unsafe injections
Plugin wired
0%
100%
Preserves existing
80%
100%
Adds when missing
60%
100%
Nested coverage
70%
100%
Babel options passed
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-babel-plugin-transform-react-display-name