You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/handling-events.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
id: handling-events
3
-
title: Bắt Sự kiện
3
+
title: Việc Bắt các Sự kiện
4
4
permalink: docs/handling-events.html
5
5
prev: state-and-lifecycle.html
6
6
next: conditional-rendering.html
@@ -11,7 +11,7 @@ redirect_from:
11
11
Việc bắt sự kiện của những element React rất giống với những element DOM. Có một số khác biệt về cú pháp như:
12
12
13
13
* Những sự kiện của React được đặt tên theo dạng camelCase, thay vì lowercase.
14
-
* Với JSX, bạn có thể sử dụng hàm để bắt sự kiện thay vì phải truyền vào một chuỗi.
14
+
* Với JSX, bạn có thể sử dụng "hàm" (function) để bắt sự kiện thay vì phải truyền vào một chuỗi.
15
15
16
16
Ví dụ, đoạn HTML sau:
17
17
@@ -66,7 +66,7 @@ class Toggle extends React.Component {
66
66
super(props);
67
67
this.state = {isToggleOn: true};
68
68
69
-
// Phép ràng buộc (bind) này là cần thiết để `this` hoạt động trong callback
69
+
// Phép "ràng buộc" (bind) này là cần thiết để `this` hoạt động trong callback
70
70
this.handleClick = this.handleClick.bind(this);
71
71
}
72
72
@@ -119,7 +119,7 @@ class LoggingButton extends React.Component {
119
119
120
120
Cú pháp này được bật theo mặc định trong [Create React App](https://github.com/facebookincubator/create-react-app).
121
121
122
-
Nếu bạn không sử dụng cú pháp thuộc tính class, bạn có thể dùng [hàm rút gọn](https://developer.mozilla.org/vi/docs/Web/JavaScript/Reference/Functions/Arrow_functions) trong callback:
122
+
Nếu bạn không sử dụng cú pháp thuộc tính class, bạn có thể dùng "hàm rút gọn" [arrow function](https://developer.mozilla.org/vi/docs/Web/JavaScript/Reference/Functions/Arrow_functions) trong callback:
0 commit comments