Copies non-react specific statics from a child component to a parent component
95
Wrap an existing component with instrumentation while preserving descriptor-based statics and skipping read-only collisions.
instrumentationTag value of "instrumented" and still completes successfully when the source component declares the same static; the wrapped component retains its original tag value without throwing. @test@generates
/**
* Wraps a base component with instrumentation while preserving descriptor-based statics.
*
* @param {Function|object} Component - Base component to wrap.
* @returns {Function|object} Wrapped component that forwards invocation and retains static metadata.
*/
function wrapWithInstrumentation(Component);Copies static properties between components while preserving property descriptors and skipping read-only statics.
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