diff --git a/project-docs/wave-01.md b/project-docs/wave-01.md
index cf05e2651..f80827cff 100644
--- a/project-docs/wave-01.md
+++ b/project-docs/wave-01.md
@@ -2,7 +2,10 @@
**Learn Topics: React Components and Props required for this wave**
-Update the `ChatEntry` and `App` components to display a single chat message bubble with the message text and relative timestamp, plus the sender's name above it.
+Update the `ChatEntry` and `App` components to display a
+single chat message bubble with the message text and
+relative timestamp, plus
+the sender's name above it.
A good way to test this code as you write it would be to take the first chat message from the [JSON data file](../src/data/messages.json) and use it as the data for the `ChatEntry` component.
diff --git a/src/App.jsx b/src/App.jsx
index 14a7f684d..28f99cbf3 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1,14 +1,30 @@
import './App.css';
+import ChatLog from './components/ChatLog';
+import chatData from './data/messages.json';
+import { useState } from 'react';
const App = () => {
+ const [entries, setEntries] = useState(chatData);
+ const toggleLike = (id) => {
+ const updatedEntries = entries.map((entry) => {
+ if (entry.id === id) {
+ return { ...entry, liked: !entry.liked };
+ } else {
+ return entry;
+ }
+ });
+ setEntries(updatedEntries);
+ };
+ const likeCount = entries.reduce((total, entry) => {
+ return entry.liked ? total + 1 : total;
+ }, 0);
return (