Copies non-react specific statics from a child component to a parent component
95
Wrap a renderable component while preserving symbol-keyed static metadata.
options.excludeSymbols includes a symbol present on the base component, that symbol static is not attached to the wrapped component. @test@generates
/**
* Creates a wrapper that renders the provided component and preserves symbol-keyed static metadata.
* @param {React.ComponentType<any>} component - Component to wrap.
* @param {{ excludeSymbols?: Symbol[] }} [options] - Symbols that should not be copied to the wrapper.
* @returns {React.ComponentType<any>} Wrapped component that proxies render.
*/
export default function createInstrumentedComponent(component, options);Provides component primitives for rendering and element creation.
Copies non-React static properties, including symbol-keyed metadata, from one component to another.
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