after you input code ,codemirror-react17-show will show code in pane ,save-button will copy your fix-code to clipboard
npm install codeshow-codemirror-reactThis npm includes: codemirror and diff-match-patch(no need to install)
本依赖作为二次封装,包含以下两个依赖 codemirror and diff-match-patch(无需安装)
import Clcm from 'codeshow-codemirror-react';
import 'codeshow-codemirror-react/dist/clcm.css';function App() {
return (
//code必填, string
);
}export default App;
``