Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 567 Bytes

File metadata and controls

29 lines (26 loc) · 567 Bytes
title Diff Usage
order 2
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import LowcodePluginBaseMonacoEditor from '@alilc/lowcode-plugin-base-monaco-editor';

class App extends Component {
  render() {
    return (
      <div>
        <LowcodePluginBaseMonacoEditor.MonacoDiffEditor
          original={JSON.stringify({a: 1}, null, 2)}
          value={JSON.stringify({b: 2}, null, 2)}
          height={100}
          language="json"
        />
      </div>
    );
  }
}

ReactDOM.render((
  <App />
), mountNode);