Skip to content

Commit

Permalink
add line
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyatakahashi committed May 9, 2020
1 parent 8b90d24 commit 0bd200b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions content/blog/2020-02-26-react-v16.13.0.md
Expand Up @@ -76,6 +76,7 @@ class ClassParent extends React.Component {
このようなコードはしばしばバグを示します。(ref は `ClassParent` で利用できると思われるかもしれませんが、代わりに `ClassWithRenderProp` に置かれてしまいます)。

**このようなコードはお持ちでない可能性が高いでしょう**。もしそのようなコードがあって、それが意図的なものであれば、代わりに [`React.createRef()`](/docs/refs-and-the-dom.html#creating-refs) を使うよう変更してください:

```jsx
class ClassWithRenderProp extends React.Component {
myRef = React.createRef();
Expand Down

0 comments on commit 0bd200b

Please sign in to comment.