v4.20.0
github-actions
released this
18 May 13:34
·
174 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/[email protected]
- 🌍 website: refactor the documentation website. e79442e @jaywcjlove
- ⛑ test: fix test case error. e938690 @jaywcjlove
- 📖 doc: Fix broken theme editor link (#493) d48bb95 @Bowen7
- 🌟 feat(merge): add onChange props. (#502) faf5b24 @jaywcjlove
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>