Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.