making some good progress
This commit is contained in:
parent
5f3d697866
commit
e901fc3f76
15 changed files with 546 additions and 165 deletions
16
src/App.tsx
16
src/App.tsx
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue