File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -27,18 +27,20 @@ SOFTWARE.
27
27
import { useEffect , useState } from 'react' ;
28
28
import { useTranslations } from 'next-intl' ;
29
29
import { useRouter } from 'next/router' ;
30
- import MonacoCodeEditor , { Monaco } from "monaco-editor/react " ;
30
+ import * as monaco from "monaco-editor" ;
31
31
32
32
const Builder = ( ) => {
33
33
const translate = useTranslations ( ) ;
34
34
35
+ monaco . editor . create ( document . getElementById ( 'monaco' ) , {
36
+ value : "function hello() {\n\talert('Hello world!');\n}" ,
37
+ language : 'javascript'
38
+ } ) ;
39
+
35
40
return (
36
- < div className = '' >
41
+ < div >
37
42
< span > { translate . raw ( 'builder-file' ) } </ span >
38
- < MonacoCodeEditor
39
- language = "javascript"
40
- theme = "light"
41
- />
43
+ < div id = "monaco" />
42
44
</ div >
43
45
)
44
46
}
You can’t perform that action at this time.
0 commit comments