Browse Source

run prettier

Trey Smith 2 years ago
parent
commit
8d313a9472
1 changed files with 4 additions and 7 deletions
  1. 4 7
      samples/browser-esm-vite-react/src/components/Editor.tsx

+ 4 - 7
samples/browser-esm-vite-react/src/components/Editor.tsx

@@ -8,16 +8,13 @@ export const Editor: VFC = () => {
 
 	useEffect(() => {
 		if (monacoEl) {
-			setEditor(editor => {
-				
-				if(editor)
-					return;
-				
+			setEditor((editor) => {
+				if (editor) return;
+
 				return monaco.editor.create(monacoEl.current!, {
 					value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
 					language: 'typescript'
-				})
-			
+				});
 			});
 		}