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 1fd8b0e commit e6d8ef4Copy full SHA for e6d8ef4
exercises/06-listening-to-events/app.jsx
@@ -1,15 +1,13 @@
1
import React from "react";
2
import ReactDOM from "react-dom";
3
-import PropTypes from "prop-types";
4
5
const clickHandler = e => {
6
console.log("I was clicked!", e);
7
};
8
9
-const Alert = props => {
+const Alert = () => {
10
return <button className="btn btn-success btn-lg">Click Me</button>;
11
12
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
+// You don't have to edit anything below
15
ReactDOM.render(<Alert />, document.querySelector("#myDiv"));
0 commit comments