Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions code/examples/item-edit-modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ function ItemEditModal({ open, items, recommendedItems, onConfirm, onClose }) {
);
}
```

์กฐํ•ฉ(Composition) ํŒจํ„ด์€ ๋‹จ์ˆœํžˆ Props๋ฅผ ์ „๋‹ฌํ•˜๋Š” ๋ฌธ์ œ๋ฅผ ์ค„์ด๋Š” ๊ฒƒ์„ ๋„˜์–ด, ๋ถˆํ•„์š”ํ•œ ์ค‘๊ฐ„ ์ถ”์ƒํ™”๋ฅผ ์ œ๊ฑฐํ•˜์—ฌ ๊ฐœ๋ฐœ์ž๊ฐ€ ์ปดํฌ๋„ŒํŠธ์˜ ์—ญํ• ๊ณผ ์˜๋„๋ฅผ ๋ช…ํ™•ํžˆ ์ดํ•ดํ•  ์ˆ˜ ์žˆ๋„๋ก ๋„์™€์ค˜์š”.
2 changes: 2 additions & 0 deletions en/code/examples/item-edit-modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ function ItemEditModal({ open, items, recommendedItems, onConfirm, onClose }) {
);
}
```

Composition pattern helps not only to reduce the problem of passing props but also to remove unnecessary intermediate abstractions, allowing developers to clearly understand the role and intent of the component.
2 changes: 2 additions & 0 deletions ja/code/examples/item-edit-modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,5 @@ function ItemEditModal({ open, items, recommendedItems, onConfirm, onClose }) {
);
}
```

ใ‚ณใƒณใƒใ‚ธใ‚ทใƒงใƒณ(Composition)ใƒ‘ใ‚ฟใƒผใƒณใฏใ€propsใ‚’ๆธกใ™ใ ใ‘ใฎๅ•้กŒใ‚’่งฃๆถˆใ™ใ‚‹ใ ใ‘ใงใชใใ€ไธ่ฆใชไธญ้–“ๆŠฝ่ฑกๅŒ–ใ‚’ๅ‰Š้™คใ—ใฆใ€้–‹็™บ่€…ใŒใ‚ณใƒณใƒใƒผใƒใƒณใƒˆใฎๅฝนๅ‰ฒใจๆ„ๅ›ณใ‚’ๆ˜Ž็ขบใซ็†่งฃใงใใ‚‹ใ‚ˆใ†ใซๆ”ฏๆดใ—ใพใ™ใ€‚