Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: link anchor id in "useRef" page
  • Loading branch information
yuta-ike committed Jun 27, 2023
commit b1d05b0d0a6a8767751845912c34abe8d6afebe5
2 changes: 1 addition & 1 deletion src/content/reference/react/useRef.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ function MyComponent() {

もし、レンダー中に何かを読み出したり[書き込んだり]((/reference/react/useState#storing-information-from-previous-renders))*しなければならない*場合は、代わりに [useState](/reference/react/useState) を使用してください。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
もし、レンダー中に何かを読み出したり[書き込んだり]((/reference/react/useState#storing-information-from-previous-renders))*しなければならない*場合は、代わりに [useState](/reference/react/useState) を使用してください。
もし、レンダー中に何かを読み出したり[書き込んだり](/reference/react/useState#storing-information-from-previous-renders)*しなければならない*場合は、代わりに [useState](/reference/react/useState) を使用してください。


これらのルールを破っていても、コンポーネントは正常に動作し続けるかもしれません。しかし、近いうちに React に追加される新機能の多くは、これらのルールが守られることを前提としています。詳しくは[コンポーネントを純粋に保つ](/learn/keeping-components-pure#where-you-can-cause-side-effects)を参照してください。
これらのルールを破っていても、コンポーネントは正常に動作し続けるかもしれません。しかし、近いうちに React に追加される新機能の多くは、これらのルールが守られることを前提としています。詳しくは[コンポーネントを純粋に保つ](/learn/keeping-components-pure#where-you-_can_-cause-side-effects)を参照してください。

</Pitfall>

Expand Down