// @lyove/monaco-edito-react is Monaco editor wrapper for easy/one-line integration with
// React applications without need of webpack (or other module bundler) configuration files.
import React, { useState } from "react";
import ReactDOM from "react-dom";
import Editor from "@lyove/monaco-editor-react";
import examples from "./examples";
function App() {
const [theme, setTheme] = useState("light");
const [language, setLanguage] = useState("javascript");
const [isEditorReady, setIsEditorReady] = useState(false);
function handleEditorDidMount() {
setIsEditorReady(true);
}
function toggleTheme() {
setTheme(theme === "light" ? "dark" : "light");
}
function toggleLanguage() {