Skip to content

Commit

Permalink
Update 14-communicate-between-components.ko-KR.md (#7686)
Browse files Browse the repository at this point in the history
Apply the same change made in #7680.
  • Loading branch information
exiadbq authored and zpao committed Sep 9, 2016
1 parent 8debf52 commit 2fc7125
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tips/14-communicate-between-components.ko-KR.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ next: expose-component-functions-ko-KR.html
`GroceryList` 컴포넌트가 배열로 생성된 아이템 목록을 가지고 있다고 해봅시다. 목록의 아이템이 클릭되면 아이템의 이름이 보이길 원할 겁니다:

```js
var handleClick = function(i, props) {
console.log('클릭한 아이템: ' + props.items[i]);
var handleClick = function(i, items) {
console.log('클릭한 아이템: ' + items[i]);
}

function GroceryList(props) {
return (
<div>
{props.items.map(function(item, i) {
return (
<div onClick={handleClick.bind(this, i, props)} key={i}>{item}</div>
<div onClick={handleClick.bind(this, i, props.items)} key={i}>{item}</div>
);
})}
</div>
Expand Down

0 comments on commit 2fc7125

Please sign in to comment.