# mridgway/hoist-non-react-statics

Copies non-react specific statics from a child component to a parent component

Repository: https://github.com/mridgway/hoist-non-react-statics
Canonical: https://ross.abutalabs.com/products/hoist-non-react-statics
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2023-05-26T05:15:42+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4116, "days_push": 1195, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1800, forks 95 (observed 2026-08-28T04:05:37.992934+00:00)

## What it is
A small JavaScript utility that copies non-React-specific static properties from a child component to a parent (wrapper) component, while preventing React's own static keywords from being overridden. It is commonly used when building higher-order components in React.

## Use cases
- copy static methods from a wrapped component to an HOC in React
- preserve component statics when wrapping components with higher-order components
- avoid overriding React static keywords like propTypes or contextTypes when hoisting
- exclude specific statics from being copied between components
- support ForwardRef-compatible static hoisting in React 16+

## When to choose
- you are writing React higher-order components and need to forward statics
- you want a battle-tested, tiny utility with broad React version compatibility

## When to avoid
- you are not working with React or component wrappers
- you use function components exclusively with no statics to hoist
- you need IE8 support without an Object.defineProperty polyfill

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools
- domain: frontend, web-development, developer-tools
- platform: browser, cross-platform
- tags: react, higher-order-components, statics, utility, nodejs

## Member repositories
- mridgway/hoist-non-react-statics (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:37.992934+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:22:14.971682+00:00, confidence not recorded.
  - readme: https://github.com/mridgway/hoist-non-react-statics (fetched 2026-08-28T04:05:37.992934+00:00, sha 38dfdcf13c1b)
  - registry_npm: https://registry.npmjs.org/hoist-non-react-statics (fetched 2026-08-29T11:01:18.770687+00:00, sha fa42b155edfd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
