We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e2573f commit fe40085Copy full SHA for fe40085
exercises/06-listening-to-events/solution.hide.jsx
@@ -0,0 +1,17 @@
1
+import React from "react";
2
+import ReactDOM from "react-dom";
3
+
4
+const clickHandler = (e) => {
5
+ console.log("I was clicked!", e);
6
+};
7
8
+const Alert = () => {
9
+ return (
10
+ <button className="btn btn-success btn-lg" onClick={clickHandler}>
11
+ Click Me
12
+ </button>
13
+ );
14
15
16
+// You don't have to edit anything below
17
+ReactDOM.render(<Alert />, document.querySelector("#myDiv"));
0 commit comments