From b6f74c9a6eed399f34966728842c3459e09d16be Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 12 Jan 2024 21:42:12 -0500 Subject: [PATCH] Add a textarea. --- src/App.tsx | 14 ++------------ src/Editor.tsx | 11 +++++++++++ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 src/Editor.tsx diff --git a/src/App.tsx b/src/App.tsx index a53698a..3e615e0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,23 +1,13 @@ import React from 'react'; import logo from './logo.svg'; import './App.css'; +import Editor from './Editor'; function App() { return (
- logo -

- Edit src/App.tsx and save to reload. -

- - Learn React - +
); diff --git a/src/Editor.tsx b/src/Editor.tsx new file mode 100644 index 0000000..fb1ad70 --- /dev/null +++ b/src/Editor.tsx @@ -0,0 +1,11 @@ +function Editor() { + function handleChange(event: React.ChangeEvent) { + console.log(event.target.value); + } + + return ( + + ); +} + +export default Editor;