Created
March 27, 2018 04:13
-
-
Save codeaholicguy/d8310bc90495afabbdb1eb724c1c95c0 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
class IndexPage extends React.Component { | |
_click = () => { | |
console.log('clicked') | |
} | |
render() { | |
return ( | |
<div> | |
<p> | |
<span | |
style={{ | |
fontWeight: 'bold', | |
color: 'purple', | |
cursor: 'pointer', | |
}} | |
onClick={this._click} | |
> | |
Click me | |
</span> | |
{' to see miracle'} | |
</p> | |
</div> | |
) | |
} | |
} | |
export default IndexPage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment