-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fd8b0e
commit e6d8ef4
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); |