Skip to content

Commit 8d674b5

Browse files
authored
Update README.md
1 parent 7f74767 commit 8d674b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/06-listening-to-events/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ tutorial: "https://www.youtube.com/watch?v=mKNchkgVtrg"
44

55
# `06` Listening for events
66

7-
Events in React work pretty much the same way they do in Vanilla JS: if you want to listen for the user `Click`, all you have to do is add your onClick property (or any other event) to the HTML tag, how it is usually done.
7+
Events in React work pretty much the same way they do in Vanilla JS: if you want to listen for the user's `Click`, all you have to do is add your `onClick` property (or any other event) to the HTML tag, as it is usually done.
88

99
The current code has one component that prints "I was clicked!" to the console.
1010

1111
## 📝 Instructions:
1212

13-
1. Update the **Alert** component to call it correctly, and then check the console.
13+
1. Update the `<Alert />` component to listen to the `onClick` event with the `handleClick` function correctly, and then check the console.
1414

1515

0 commit comments

Comments
 (0)