# uiwjs/react-codemirror

CodeMirror 6 component for React. @codemirror https://uiwjs.github.io/react-codemirror/

Repository: https://github.com/uiwjs/react-codemirror
Canonical: https://ross.abutalabs.com/products/react-codemirror
Homepage: https://uiwjs.github.io/react-codemirror/
Language: TypeScript
License: MIT
License Family: permissive
Topics: react, codemirror, react-codemirror, editor, ide, codemirror6, hook, react-codemirror2, typescript, codemirror-themes, themes
Last push: 2026-07-08T16:38:31+00:00

## Health v2 (maintenance only)
Score: 93/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 91, release rhythm 92, longevity 100
- inputs: {"age_days": 2984, "days_push": 56, "days_rel": 56, "gap_med": 16.0, "n_releases_24m": 29}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2249, forks 161 (observed 2026-08-28T04:06:30.322849+00:00)

## What it is
A React component wrapper around CodeMirror 6, providing a declarative, hook-friendly way to embed a code editor in React applications. It includes TypeScript support, theming, and extensions for building IDE-like editing experiences.

## Use cases
- embed a code editor in a React app
- build an in-browser IDE or playground
- add syntax-highlighted code input to forms
- create a markdown or JSON editor with live highlighting
- customize editor themes in React
- build a live coding demo component

## When to choose
- you use React and want CodeMirror 6 with a component/hook API
- you need TypeScript typings and easy theme integration
- you want a maintained wrapper instead of wiring CodeMirror manually

## When to avoid
- your app is not React-based
- you need CodeMirror 5 compatibility
- you need a full standalone editor application rather than an embeddable component

## Facets
- artifact type: library
- maturity: active
- function: editor, ui-components, frontend-framework
- domain: web-development, frontend, text-editors, developer-tools
- platform: cross-platform
- tags: codemirror, react, code-editor, syntax-highlighting, typescript, themes, web-server, nodejs

## Member repositories
- uiwjs/react-codemirror (main) score 93

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:30.322849+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-30T02:43:55.285974+00:00, confidence not recorded.
  - readme: https://github.com/uiwjs/react-codemirror (fetched 2026-08-28T04:06:30.322849+00:00, sha ea08f26e820e)
  - homepage: https://uiwjs.github.io/react-codemirror/ (fetched 2026-08-29T10:24:12.686003+00:00, sha d9c1305d4f65)
- Data as of 2026-08-30T08:39:29.467469+00:00.
