{"library":"hoist-non-react-statics","type":"library","category":null,"description":"hoist-non-react-statics is a focused utility library for React applications designed to copy non-React specific static properties from a child component to a parent component. It functions similarly to `Object.assign` but intelligently blacklists React's internal static keywords to prevent unintentional overrides. This mechanism is critical for Higher-Order Components (HOCs) to correctly preserve static methods, `propTypes`, `defaultProps`, or other custom static properties from the wrapped component, preventing their loss during composition. The current stable version is 3.3.2. The package maintains a stable release cadence primarily driven by React's evolution (e.g., ForwardRefs support) and TypeScript definition enhancements, ensuring broad compatibility across various React versions. Its key differentiator is its precise targeting of user-defined static properties while respecting React's internals, solving a common HOC pattern challenge documented by React itself.","language":"javascript","status":"active","version":"3.3.2","tags":["javascript","react"],"last_verified":"Wed May 27","install":[{"cmd":"npm install hoist-non-react-statics","imports":["import hoistNonReactStatics from 'hoist-non-react-statics';","const hoistNonReactStatics = require('hoist-non-react-statics');","import hoistNonReactStatics, { NonReactStatics } from 'hoist-non-react-statics';"]},{"cmd":"yarn add hoist-non-react-statics","imports":[]},{"cmd":"pnpm add hoist-non-react-statics","imports":[]}],"homepage":null,"github":"https://github.com/mridgway/hoist-non-react-statics","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hoist-non-react-statics","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/hoist-non-react-statics/compatibility"}}