Copies non-react specific statics from a child component to a parent component
95
{
"context": "Evaluates whether the wrapper uses hoist-non-react-statics to mirror source component statics onto the wrapper. Focuses on honoring caller-provided exclusion maps, including symbol keys, while keeping wrapper-defined statics intact.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Hoist usage",
"description": "Calls hoistNonReactStatics from hoist-non-react-statics to copy statics from the source to the wrapper, returning the target component as the result.",
"max_score": 35
},
{
"name": "Exclusion map",
"description": "Passes the user-provided exclusion map as the third argument to hoistNonReactStatics so truthy entries prevent copying those named statics.",
"max_score": 30
},
{
"name": "Symbol support",
"description": "Ensures symbol keys provided in the exclusion map are forwarded intact to hoistNonReactStatics so symbol statics can be skipped.",
"max_score": 20
},
{
"name": "Keep wrapper statics",
"description": "Uses hoistNonReactStatics in an order that retains any existing wrapper statics (e.g., defining wrapper statics before or after the hoist so they are not overwritten).",
"max_score": 15
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-hoist-non-react-staticsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10