Skip to content

Instantly share code, notes, and snippets.

@jslnriot
Created March 19, 2017 23:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jslnriot/db73aca09adb7a7f19d37e46932cb059 to your computer and use it in GitHub Desktop.
Save jslnriot/db73aca09adb7a7f19d37e46932cb059 to your computer and use it in GitHub Desktop.
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