Skip to content

Instantly share code, notes, and snippets.

@codeaholicguy
Created March 27, 2018 04:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save codeaholicguy/d8310bc90495afabbdb1eb724c1c95c0 to your computer and use it in GitHub Desktop.
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