Skip to content

Commit f530cd6

Browse files
committed
誤字・改行を修正
1 parent 13b2718 commit f530cd6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

content/docs/portals.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ render() {
3131

3232
```js{6}
3333
render() {
34-
// React は新しい div をつくり*ません*。小要素は `domNode` に対して描画されます。
34+
// React は新しい div をつくり*ません*。子要素は `domNode` に対して描画されます。
3535
// `domNode` は DOM ノードであれば何でも良く、 DOM 構造内のどこにあるかは問いません。
3636
return ReactDOM.createPortal(
3737
this.props.children,
@@ -109,8 +109,7 @@ class Parent extends React.Component {
109109
}
110110
111111
handleClick() {
112-
// これは Child 内のボタンがクリックされた時に発行され、
113-
// Parent の state を更新します。
112+
// これは Child 内のボタンがクリックされた時に発行され、 Parent の state を更新します。
114113
// たとえそのボタンが DOM 上では直系の子孫でなかったとしてもです。
115114
this.setState(state => ({
116115
clicks: state.clicks + 1

0 commit comments

Comments
 (0)