diff --git a/src/App.tsx b/src/App.tsx index 1c8859e..031f3b6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,11 +3,11 @@ import { useEffect, useState } from 'react'; import './App.css' import { Editor, initialEditorState, type EditorState } from './Editor' - export function App() { const [state, setState] = useState(initialEditorState); useEffect(() => { + window['APP_STATE'] = state; // console.log("EDITOR STATE:", state); }, [state]); @@ -18,7 +18,12 @@ export function App() {
- + {console.log("toplevel resolved")}} + onCancel={() => {console.log("toplevel canceled")}} + />