Skip to content

v4.20.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 May 13:34
· 173 commits to master since this release

Documentation v4.20.0: https://raw.githack.com/uiwjs/react-codemirror/6eeb98c/index.html
Comparing Changes: v4.19.16...v4.20.0

npm i @uiw/react-codemirror@4.20.0
import CodeMirrorMerge from 'react-codemirror-merge';
const Original = CodeMirrorMerge.Original;
const Modified = CodeMirrorMerge.Modified;

<CodeMirrorMerge
  style={{ height: 300, overflow: 'auto' }}
>
  <Original
    value={originalCode}
    onChange={(value) => {
      console.log('value3:', value)
    }}
  />
  <Modified
    value={modifiedCode}
    onChange={(value) => {
      console.log('value3:', value)
    }}
  />
</CodeMirrorMerge>