Created
March 19, 2017 23:33
-
-
Save jslnriot/db73aca09adb7a7f19d37e46932cb059 to your computer and use it in GitHub Desktop.
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
import React from 'react'; | |
const ExampleComponent = ({message}) => { | |
const showMessage = (event) => { | |
alert(`The message is: ${message}`); | |
}; | |
return ( | |
<div> | |
<a href="#" onClick={showMessage}>show me</a> | |
</div> | |
); | |
} | |
export default ExampleComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment