diff --git a/index.html b/index.html index 7a7a089..e596278 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@
diff --git a/src/components/App.tsx b/src/components/App.tsx new file mode 100644 index 0000000..12c4b36 --- /dev/null +++ b/src/components/App.tsx @@ -0,0 +1,9 @@ +import Chat from './Chat'; + +export default function App() { + return ( +
+ +
+ ); +} diff --git a/src/components/Chat.tsx b/src/components/Chat.tsx index bf7f8fc..f83a1aa 100644 --- a/src/components/Chat.tsx +++ b/src/components/Chat.tsx @@ -38,7 +38,7 @@ export default function Chat() { }); return ( -
+ <>
@@ -48,6 +48,6 @@ export default function Chat() { onSubmit={handleSubmit} value={input} /> -
+ ); } diff --git a/src/main.tsx b/src/main.tsx index db644af..6b1fe4e 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -2,6 +2,6 @@ import './index.css'; import { render } from 'preact'; -import Chat from './components/Chat'; +import App from './components/App'; -render(, document.getElementById('root')!); +render(, document.getElementById('app')!);