Skip to content

Instantly share code, notes, and snippets.

@JenniferFuBook
Created December 3, 2022 23:47
Show Gist options
  • Save JenniferFuBook/09567e69e176bb13cdafd16405b3df09 to your computer and use it in GitHub Desktop.
Save JenniferFuBook/09567e69e176bb13cdafd16405b3df09 to your computer and use it in GitHub Desktop.
import { DiffEditor } from '@monaco-editor/react';
function App() {
return (
<DiffEditor
height="100vh"
original={`This line is removed on the right.\njust some text\nabcd\nefgh\nSome more text`}
modified={`just some text\nabcz\nzzzzefgh\nSome more text.\nThis line is removed on the left.`}
/>
);
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment