Skip to content
Discussion options

You must be logged in to vote

That worked for me, although you have a syntax error with your render method:

import React from 'react'

export default class Page extends React.Component {
  render() {
    return <a onClick={() => console.log("wow")}>Click here</a>
  }
}

Do you have any other code you could share?

Replies: 10 comments 16 replies

Comment options

You must be logged in to vote
1 reply
@abubakar2029
Comment options

Answer selected by phidah
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nikovacs
Comment options

Comment options

You must be logged in to vote
2 replies
@GoncaloFig
Comment options

@abubakar2029
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Adeen1
Comment options

Comment options

You must be logged in to vote
9 replies
@SunriseXuu
Comment options

@Mitchell-Conrad-20
Comment options

@nathan-osman
Comment options

@wadinj
Comment options

@syond
Comment options

Comment options

You must be logged in to vote
2 replies
@CHENNI-Nidhaleddine
Comment options

@iqrairfan100
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet