making some good progress

This commit is contained in:
Joeri Exelmans 2025-05-11 13:22:12 +02:00
parent 5f3d697866
commit e901fc3f76
15 changed files with 546 additions and 165 deletions

View file

@ -1,11 +1,15 @@
// import { useState } from 'react'
import { useEffect, useState } from 'react';
import './App.css'
import { Editor } from './Editor'
import { Editor, initialEditorState, type EditorState } from './Editor'
import {module2Env, ModuleStd} from "dope2";
function App() {
const env = module2Env(ModuleStd);
export function App() {
const [state, setState] = useState<EditorState>(initialEditorState);
useEffect(() => {
// console.log("EDITOR STATE:", state);
}, [state]);
return (
<>
@ -14,7 +18,7 @@ function App() {
</header>
<main>
<Editor env={env}></Editor>
<Editor state={state} setState={setState}></Editor>
</main>
<footer>
@ -23,5 +27,3 @@ function App() {
</>
)
}
export default App