JSPM

  • Created
  • Published
  • Downloads 1047128
  • Score
    100M100P100Q207343F
  • License MIT

CodeMirror component for React.

Package Exports

  • @uiw/react-codemirror

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@uiw/react-codemirror) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-codemirror

CodeMirror component for React. demo @uiw-react.github.io/react-codemirror/

Install

npm install @uiw/react-codemirror --save

Usage

import CodeMirror from '@uiw/react-codemirror';
import 'codemirror/keymap/sublime';
import 'codemirror/theme/eclipse.css';

<CodeMirror
  value={code}
  options={{
    keyMap: 'sublime',
    mode: 'jsx',
  }}
/>

License

Licensed under the MIT License.