Reputation:
Something out of my knowledge is happening in my code. I have a component which renders a span tag with a onClick event:
<span style={styles.cursorPointer} onClick={this.handleClick}>{props.page.word}</span>
But when I check the code in the browser the span tag doesn't have the onClick:
developer tools screenshot of the code
I know it seems a little abstract but I just can't figure why the onClick isn't there.
Thanks.
Upvotes: 7
Views: 29357