{"library":"react-codemirror2","type":"library","category":null,"description":"react-codemirror2 is a React component wrapper for CodeMirror 5, designed to embed a customizable code editor into React applications. It provides both `Controlled` and `UnControlled` components, catering to different state management paradigms within React. The current stable version is 9.0.1. Its release cadence is primarily tied to major React version updates for peer dependency compatibility and critical bug fixes, rather than a fixed schedule. A key differentiator is its explicit commitment to CodeMirror 5, meaning it does not support the fundamentally rewritten CodeMirror 6 API. Developers must manually import CodeMirror modes and themes. The library ships with TypeScript types and is widely used for creating syntax-highlighting text areas.","language":"javascript","status":"maintenance","version":"9.0.1","tags":["javascript","react","react-codemirror","codemirror","editor","syntax","ide","code","typescript"],"install":[{"cmd":"npm install react-codemirror2","imports":["import { UnControlled as CodeMirror } from 'react-codemirror2'","import { Controlled as CodeMirror } from 'react-codemirror2'","import 'codemirror/lib/codemirror.css';\nrequire('codemirror/mode/xml/xml');"]},{"cmd":"yarn add react-codemirror2","imports":[]},{"cmd":"pnpm add react-codemirror2","imports":[]}],"homepage":null,"github":"https://github.com/scniro/react-codemirror2","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-codemirror2","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/react-codemirror2/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}