implement nested handlers in call block
This commit is contained in:
parent
1f831b0517
commit
9afaa41fbb
2 changed files with 39 additions and 18 deletions
|
|
@ -1,4 +1,3 @@
|
|||
// import { useState } from 'react'
|
||||
import { useEffect, useState } from 'react';
|
||||
import './App.css'
|
||||
import { Editor, initialEditorState, type EditorState } from './Editor'
|
||||
|
|
@ -82,9 +81,9 @@ const tripleFunctionCallEditorState: EditorState = {
|
|||
}
|
||||
|
||||
export function App() {
|
||||
const [history, setHistory] = useState([initialEditorState]);
|
||||
// const [history, setHistory] = useState([initialEditorState]);
|
||||
// const [history, setHistory] = useState([nonEmptyEditorState]);
|
||||
// const [history, setHistory] = useState([tripleFunctionCallEditorState]);
|
||||
const [history, setHistory] = useState([tripleFunctionCallEditorState]);
|
||||
|
||||
const [future, setFuture] = useState<EditorState[]>([]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue