Skip to content

Commit 0a38123

Browse files
committed
demo
1 parent d17e597 commit 0a38123

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

demo/event.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@
3939
}
4040

4141
render() {
42-
var self = this;
4342
return <div onClick={ this.click }>
4443
{
45-
[1,2,3].map(function(item) {
46-
return <span onClick={ self.click.bind(self) }>{ item }</span>
44+
[1,2,3].map(item => {
45+
return <span onClick={ this.click }>{ item }</span>
4746
})
4847
}
4948
</div>;

0 commit comments

Comments
 (0)