You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
8
8
9
-
The current code has one component that prints "I was clicked!" to the console.
9
+
The current code has one component that prints `I was clicked!` to the console when clicked.
0 commit comments