// import React from 'react'; // import MonacoEditor from 'react-monaco-editor'; // export interface CodeEditorProps { // code: string // } // export interface CodeEditorState { // code: string // } // class CodeEditor extends React.Component { // constructor(props) { // super(props); // this.state = { // code: '// type your code...', // } // } // editorDidMount(editor, monaco) { // console.log('editorDidMount', editor); // editor.focus(); // } // onChange(newValue, e) { // console.log('onChange', newValue, e); // } // render() { // const code = this.state.code; // const options = { // selectOnLineNumbers: true // }; // const _this = this; // return ( // _this.onChange(...args)} // editorDidMount={(...args) => _this.editorDidMount(...args)} // /> // ); // } // } // export default CodeEditor;