mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
update click message
This commit is contained in:
@@ -14,7 +14,8 @@
|
||||
this.setState({clickCount: ++selfClickNumber});
|
||||
},
|
||||
render: function () {
|
||||
return React.DOM.h2({onClick: this.handleClick}, 'Count number: '+this.state.clickCount);
|
||||
return React.DOM.h2({onClick: this.handleClick},
|
||||
'Click me! Number of clicks: '+this.state.clickCount);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user