Skip to content

Commit

Permalink
Update app.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
josemoracard authored Oct 18, 2023
1 parent 1fd8b0e commit e6d8ef4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions exercises/06-listening-to-events/app.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React from "react";
import ReactDOM from "react-dom";
import PropTypes from "prop-types";

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

const Alert = props => {
const Alert = () => {
return <button className="btn btn-success btn-lg">Click Me</button>;
};

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

0 comments on commit e6d8ef4

Please sign in to comment.