Copies non-react specific statics from a child component to a parent component
Overall
score
95%
Exclude specific statics via user-provided map
Hoist usage
100%
100%
Exclusion map
100%
100%
Symbol support
100%
100%
Keep wrapper statics
100%
100%
Hoist non-React statics with React/JS blacklists
Uses hoist
100%
100%
React blacklist
100%
100%
Omit map
100%
100%
Prototype support
100%
100%
Descriptors & symbols
100%
100%
Intrinsic guard
100%
100%
Hoist inherited statics along the prototype chain
Imports library
25%
100%
Correct hoist call
0%
100%
Wrapper statics kept
50%
60%
Descriptors & symbols
80%
100%
Exclusion support
20%
100%
Leave existing React statics on the target untouched
Library call
100%
100%
React statics preserved
100%
100%
Custom statics hoisted
100%
100%
Returns target
100%
100%
Copy symbol-named statics
Uses hoist helper
100%
100%
Symbol statics kept
100%
100%
Exclusions handled
50%
50%
Prototype symbols
100%
100%
Hoist placement
100%
100%
Preserve property descriptors and skip read-only statics
Hoist usage
100%
100%
Accessor kept
100%
100%
Non-enumerable
100%
100%
Read-only safe
100%
100%
Respect memo internals across React versions
Library call
0%
100%
Memo awareness
0%
20%
Preserves wrapper
100%
100%
Symbol statics
100%
100%
Exclusion map
100%
100%
Skip hoisting from string DOM component sources
Use library hoist
100%
100%
Skip DOM strings
100%
100%
Respect blacklist
100%
100%
Return hoisted target
100%
100%
Correct import
100%
100%
Return target component for HOC chaining
Correct call signature
100%
100%
Static copying
100%
100%
Exclusion handling
100%
100%
Chainable return
100%
100%
String source guard
100%
100%
Respect forwardRef internals when hoisting
Hoist call
100%
100%
Skip internals
100%
60%
Custom statics
100%
100%
Hoist placement
100%
100%
No manual copies
100%
50%
Install with Tessl CLI
npx tessl i tessl/npm-hoist-non-react-statics