# brigand/react-mixin

mixins in react with es6 style classes

Repository: https://github.com/brigand/react-mixin
Canonical: https://ross.abutalabs.com/products/react-mixin
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2018-09-27T00:25:24+00:00

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

## Adoption (not part of the score)
Stars 1116, forks 39 (observed 2026-08-28T04:03:38.715000+00:00)

## What it is
A JavaScript library that implements React's mixin strategy for ES6-style classes, allowing mixins to be applied to class prototypes or classes directly, including via decorators. It is explicitly positioned as a migration path for legacy code, since React mixins are deprecated in favor of higher-order components.

## Use cases
- add mixins to React ES6 class components
- migrate legacy createClass mixins to ES6 classes
- use PureRenderMixin or react-router Lifecycle mixin with classes
- apply mixins via ES7 decorators
- convert old mixins to UNSAFE_ lifecycle format for React 16.3+

## When to choose
- maintaining a legacy React codebase that still relies on mixins
- temporarily bridging createClass-era mixins into ES6 class components
- you specifically need a mixin like PureRenderMixin with class syntax

## When to avoid
- starting a new React project - use higher-order components or hooks instead
- using modern React versions where mixins are fully unsupported
- you want long-term maintained tooling - the project itself calls mixins 'basically dead'

## Facets
- artifact type: library
- maturity: maintenance
- function: middleware, developer-tools
- domain: frontend, web-development, developer-tools
- platform: -
- tags: react, mixins, es6-classes, decorators, legacy-code, higher-order-components, nodejs, javascript

## Member repositories
- brigand/react-mixin (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:38.715000+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-30T06:41:57.497695+00:00, confidence not recorded.
  - readme: https://github.com/brigand/react-mixin (fetched 2026-08-28T04:03:38.715000+00:00, sha 335166f51562)
  - registry_npm: https://registry.npmjs.org/react-mixin (fetched 2026-08-29T12:45:42.485254+00:00, sha 6406f75be817)
- Data as of 2026-08-30T08:39:29.467469+00:00.
