From 02d49b9b66f14e6f3890acc1262684513d34d989 Mon Sep 17 00:00:00 2001 From: "colin-codegen[bot]" <137733214+colin-codegen[bot]@users.noreply.github.com> Date: Tue, 15 Aug 2023 19:27:59 +0000 Subject: [PATCH 1/2] Implement console logging of 'Hello, World!' in Chat component --- src/components/Chat/Chat.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Chat/Chat.tsx b/src/components/Chat/Chat.tsx index 3898051..e52a487 100644 --- a/src/components/Chat/Chat.tsx +++ b/src/components/Chat/Chat.tsx @@ -43,6 +43,8 @@ const createMessage = (text: string, isUserMessage: boolean): Message => { export default function Chat() { const userId = useAtomValue(chatUserIdAtom); + const logMessage: string = "Hello, World!"; +console.log(logMessage); // ref to track text area and scroll text into view const ref = useRef(null); From 41c2c62a83b0497ba46bee299cd5ae4ffb792fff Mon Sep 17 00:00:00 2001 From: "colin-codegen[bot]" <137733214+colin-codegen[bot]@users.noreply.github.com> Date: Thu, 17 Aug 2023 20:04:05 +0000 Subject: [PATCH 2/2] Implemented logging numbers from 0 to 100 in Chat component --- src/components/Chat/Chat.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Chat/Chat.tsx b/src/components/Chat/Chat.tsx index e52a487..62124f5 100644 --- a/src/components/Chat/Chat.tsx +++ b/src/components/Chat/Chat.tsx @@ -43,8 +43,10 @@ const createMessage = (text: string, isUserMessage: boolean): Message => { export default function Chat() { const userId = useAtomValue(chatUserIdAtom); - const logMessage: string = "Hello, World!"; -console.log(logMessage); + for(let i = 0; i <= 100; i++){ + console.log(i); +} + // ref to track text area and scroll text into view const ref = useRef(null);