Skip to content

Commit 1e97b6a

Browse files
author
jesse
committed
run textlint
1 parent cd392fd commit 1e97b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/composition-vs-inheritance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function WelcomeDialog() {
4949

5050
`<FancyBorder>` JSX タグの内側のあらゆる要素は `FancyBorder``children` という props として渡されます。 `FancyBorder``<div>` の内側に `{props.children}` をレンダリングするので、渡された要素が出力されます。
5151

52-
あまり一般的ではありませんが、複数の箇所に子要素を追加したいケースも考えられます。そのようなケースでは 以下のように `children` の props の代わりに独自の props を作成して渡すことができます。
52+
あまり一般的ではありませんが、複数の箇所に子要素を追加したいケースも考えられます。そのようなケースでは以下のように `children` の props の代わりに独自の props を作成して渡すことができます。
5353
この実装方法は他のライブラリで言うところの slot や yield のような考え方ですが、React のコンポーネントに props として渡せるものに制限はありません。
5454

5555
```js{5,8,18,21}

0 commit comments

Comments
 (0)