Skip to content

Commit fe40085

Browse files
authored
Create solution.hide.jsx
1 parent 8e2573f commit fe40085

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)