Skip to content

Commit

Permalink
Update content/blog/2020-02-26-react-v16.13.0.md
Browse files Browse the repository at this point in the history
Co-authored-by: Soichiro Miki <smiki-tky@umin.ac.jp>
  • Loading branch information
PeterTakahashi and smikitky committed May 9, 2020
1 parent 7cd1163 commit ad4ca30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/blog/2020-02-26-react-v16.13.0.md
Expand Up @@ -13,7 +13,7 @@ redirect_from:

React コンポーネントは、レンダー中に他のコンポーネントに副作用を起こしてはいけません。

レンダー中に `setState` を呼び出すことはサポートされていますが [*同じ*コンポーネントに対してのみ](/docs/hooks-faq.html#how-do-i-implement-getderivedstatefromprops)可能です。別のコンポーネントのレンダー中に `setState` を呼び出すと、警告が表示されるようになりました。
レンダー中に `setState` を呼び出すことはサポートされていますが[*同じ*コンポーネントに対してのみ](/docs/hooks-faq.html#how-do-i-implement-getderivedstatefromprops)可能です。別のコンポーネントのレンダー中に `setState` を呼び出すと、警告が表示されるようになりました。

```
Warning: Cannot update a component from inside the function body of a different component.
Expand Down

0 comments on commit ad4ca30

Please sign in to comment.