Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate 13 #9

Merged
merged 2 commits into from
May 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
|9 | [React에서 props는 무엇인가?](#what-are-props-in-react) |
|10 | [state와 prop의 차이점은?](#what-is-the-difference-between-state-and-props) |
|11 | [왜 state를 직접 update하면 안되나?](#왜-state를-직접-update하면-안되나) |
|12 | [setState()의 argument로 callback 함수를 사용하는 이유는?](#setState()의-argument로-callback-함수를-사용하는-이유는)
|13 | [HTML과 React의 event handling의 차이점은?](#what-is-the-difference-between-html-and-react-event-handling) |
|12 | [setState()의 argument로 callback 함수를 사용하는 이유는?](#setState()의-argument로-callback-함수를-사용하는-이유는) |
|13 | [HTML과 React의 event handling의 차이점은?](#HTML과-React의-event-handling의-차이점은) |
|14 | [How to bind methods or event handlers in JSX callbacks?](#how-to-bind-methods-or-event-handlers-in-jsx-callbacks) |
|15 | [How to pass a parameter to an event handler or callback?](#how-to-pass-a-parameter-to-an-event-handler-or-callback) |
|16 | [What are synthetic events in React?](#what-are-synthetic-events-in-react) |
Expand Down Expand Up @@ -523,27 +523,27 @@
setState({ name: 'John' }, () => console.log('The name has updated and component re-rendered'))
```

13. ### What is the difference between HTML and React event handling?
13. ### HTML과 React의 event handling의 차이점은?

1. In HTML, the event name should be in *lowercase*:
1. HTML에서, 이벤트 이름은 *소문자*여야 한다:

```html
<button onclick='activateLasers()'>
```

Whereas in React it follows *camelCase* convention:
반면에 React에서는 *camelCase* 규칙을 따른다:

```jsx harmony
<button onClick={activateLasers}>
```

1. In HTML, you can return `false` to prevent default behavior:
1. HTML에서, 기본 동작 방지를 위해 `false`를 반환할 수 있다:

```html
<a href='#' onclick='console.log("The link was clicked."); return false;' />
```

Whereas in React you must call `preventDefault()` explicitly:
반면에 React에서는 `preventDefault()`를 명시적으로 호출해야 한다:

```javascript
function handleClick(event) {
Expand Down