Skip to content

Commit c695dd5

Browse files
committed
Minor updates
+ Update title + Add some terms explanation
1 parent 3bdeb0a commit c695dd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/docs/handling-events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: handling-events
3-
title: Bắt Sự kiện
3+
title: Việc Bắt các Sự kiện
44
permalink: docs/handling-events.html
55
prev: state-and-lifecycle.html
66
next: conditional-rendering.html
@@ -11,7 +11,7 @@ redirect_from:
1111
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ư:
1212

1313
* 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.
1515

1616
Ví dụ, đoạn HTML sau:
1717

@@ -66,7 +66,7 @@ class Toggle extends React.Component {
6666
super(props);
6767
this.state = {isToggleOn: true};
6868
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
7070
this.handleClick = this.handleClick.bind(this);
7171
}
7272
@@ -119,7 +119,7 @@ class LoggingButton extends React.Component {
119119

120120
Cú pháp này được bật theo mặc định trong [Create React App](https://github.com/facebookincubator/create-react-app).
121121

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:
123123

124124
```js{7-9}
125125
class LoggingButton extends React.Component {

0 commit comments

Comments
 (0)