Skip to content

Commit e6d8ef4

Browse files
authored
Update app.jsx
1 parent 1fd8b0e commit e6d8ef4

File tree

1 file changed

+2
-4
lines changed
  • exercises/06-listening-to-events

1 file changed

+2
-4
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import React from "react";
22
import ReactDOM from "react-dom";
3-
import PropTypes from "prop-types";
43

54
const clickHandler = e => {
65
console.log("I was clicked!", e);
76
};
87

9-
const Alert = props => {
8+
const Alert = () => {
109
return <button className="btn btn-success btn-lg">Click Me</button>;
1110
};
1211

13-
// here is where the alert component is being used, you don't have to edit this part,
14-
// but it helps you understand what properties is the component using
12+
// You don't have to edit anything below
1513
ReactDOM.render(<Alert />, document.querySelector("#myDiv"));

0 commit comments

Comments
 (0)