diff --git a/src/App.tsx b/src/App.tsx index a5f8c0f..06f4d6c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,6 +2,7 @@ import { useState } from "react"; import FilesContext from "./FilesContext"; import FileTab from "./components/TopBar"; import OpenedFile from "./types/OpenedFile"; +import Editor from "./components/Editor"; function App() { const [files, setFiles] = useState([ @@ -51,6 +52,7 @@ function App() {
+
); diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx new file mode 100644 index 0000000..03bb0cb --- /dev/null +++ b/src/components/Editor.tsx @@ -0,0 +1,22 @@ +import { ChangeEvent, useState } from "react"; + +function Editor() { + const [code, setCode] = useState("// Start coding here..."); + + const handleChange = (event: ChangeEvent) => { + setCode(event.target.value); + }; + + return ( +
+