diff --git a/project-docs/wave-02.md b/project-docs/wave-02.md
index 5a55fe505..ee9ceb791 100644
--- a/project-docs/wave-02.md
+++ b/project-docs/wave-02.md
@@ -2,7 +2,9 @@
**Learn Topics: React Components and Props required for this wave**
-Implement a `ChatLog` component and update the `App` component to display an entire chat log. `ChatLog` should display a sequence of individual `ChatEntry` components.
+--Implement a `ChatLog` component and
+--update the `App` component to display an entire chat log.
+--`ChatLog` should display a sequence of individual `ChatEntry` components.
`ChatLog` takes one prop named `entries` (which is an array).
diff --git a/project-docs/wave-03.md b/project-docs/wave-03.md
index 22e175a61..625512768 100644
--- a/project-docs/wave-03.md
+++ b/project-docs/wave-03.md
@@ -5,6 +5,7 @@
In this wave we will update the components to manage a **like** feature.
- Add behavior to heart button in `ChatEntry` so that when it is clicked it toggles from an empty heart (🤍) to a filled heart (❤️) and from a filled heart (❤️) to an empty heart (🤍).
+
- Manage the click event and state of the chat entries such that when the like status of a chat message changes by clicking the heart button, it is tracked by the `App` and the `App` reports the number of total messages that have been liked.
- Example: If the user has liked three messages, `3 ❤️s` will appear at the top of the screen.
diff --git a/src/App.js b/src/App.js
index c10859093..16fbd1d9d 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,16 +1,33 @@
-import React from 'react';
+import React, {useState} from 'react';
import './App.css';
import chatMessages from './data/messages.json';
+import ChatLog from './components/ChatLog';
const App = () => {
+ const [messageData, setMessageData] = useState(chatMessages)
+
+ const updateMessageData = (updatedMessage) => {
+ const messages = messageData.map((message) => {
+ if (message.id === updatedMessage.id) {
+ return updatedMessage;
+ } else {
+ return message;
+ }
+ });
+
+ setMessageData(messages)
+ }
+
return (
-