diff --git a/src/components/CodeEditor/CodeEditor.js b/src/components/CodeEditor/CodeEditor.js index 08e40f5..f361aa6 100644 --- a/src/components/CodeEditor/CodeEditor.js +++ b/src/components/CodeEditor/CodeEditor.js @@ -175,20 +175,20 @@ void loop() { defaultValue={ localStorage.getItem("ArduinoCode") ? localStorage.getItem("ArduinoCode") - : ` -#include //needs to be always included + : `#include //needs to be always included void setup () { - + } - + void loop() { - + }` } value={fileContent} onMount={(editor, monaco) => { editorRef.current = editor; + saveValue(); }} />