@samitouri / QOS-React-2 / commits / 2fc7125d49

Update 14-communicate-between-components.ko-KR.md (#7686)

Apply the same change made in #7680.

Ray Dai committed Sep 10, 2016 at 04:22 UTC 2fc7125d49f207e5bdda0097ed01dc87d06ecec9
1 file changed +3 -3
docs/tips/14-communicate-between-components.ko-KR.md
+3 -3
@@ -13,8 +13,8 @@ next: expose-component-functions-ko-KR.html
13 `GroceryList` 컴포넌트가 배열로 생성된 아이템 목록을 가지고 있다고 해봅시다. 목록의 아이템이 클릭되면 아이템의 이름이 보이길 원할 겁니다:
14
15 ```js
16 -var handleClick = function(i, props) {
17 - console.log('클릭한 아이템: ' + props.items[i]);
16 +var handleClick = function(i, items) {
17 + console.log('클릭한 아이템: ' + items[i]);
18 }
19
20 function GroceryList(props) {
@@ -22,7 +22,7 @@ function GroceryList(props) {
22 <div>
23 {props.items.map(function(item, i) {
24 return (
25 - <div onClick={handleClick.bind(this, i, props)} key={i}>{item}</div>
25 + <div onClick={handleClick.bind(this, i, props.items)} key={i}>{item}</div>
26 );
27 })}
28 </div>