Added monaco code editor

nodeDev
Klotske 2022-07-14 17:22:50 +00:00
parent 8033722fe3
commit 66f8ee790b
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,18 @@
import Editor from "@monaco-editor/react";
const CodeEditor = () => {
return (
<Editor
height="90vh"
defaultLanguage="cpp"
defaultValue="// some comment"
options={{
minimap: {
enabled: false,
},
}}
/>
);
};
export default CodeEditor;

View File

@ -1,5 +1,7 @@
import CodeEditor from "../components/CodeEditor/CodeEditor";
const Editor = () => { const Editor = () => {
return "Редактор кода"; return <CodeEditor />;
}; };
export default Editor; export default Editor;