Created
December 3, 2022 23:47
-
-
Save JenniferFuBook/09567e69e176bb13cdafd16405b3df09 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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