Skip to content

Commit 41aef62

Browse files
authored
Update handling-events.md
1 parent 73c8a55 commit 41aef62

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

content/docs/handling-events.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@ sẽ có đôi chút khác biệt trong React:
2929
</button>
3030
```
3131

32-
<<<<<<< HEAD
3332
Một điểm khác biệt nữa trong React là bạn không thể trả về `false` để chặn những hành vi mặc định mà phải gọi `preventDefault` trực tiếp. Lấy ví dụ với đoạn HTML sau, để chặn hành vi mặc định của đường dẫn là mở trang mới, bạn có thể viết:
34-
=======
35-
Another difference is that you cannot return `false` to prevent default behavior in React. You must call `preventDefault` explicitly. For example, with plain HTML, to prevent the default form behavior of submitting, you can write:
36-
>>>>>>> 0bb0303fb704147452a568472e968993f0729c28
3733

3834
```html
3935
<form onsubmit="console.log('You clicked submit.'); return false">

0 commit comments

Comments
 (0)