Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid link on the forwardRef page #6525

Closed
bielarusajed opened this issue Dec 29, 2023 · 1 comment · Fixed by #6537
Closed

Invalid link on the forwardRef page #6525

bielarusajed opened this issue Dec 29, 2023 · 1 comment · Fixed by #6537

Comments

@bielarusajed
Copy link

Hi, on the page about forwardRef there is a link to a section, that doesn't exist:

In Strict Mode, React will call your render function twice in order to help you find accidental impurities. This is development-only behavior and does not affect production. If your render function is pure (as it should be), this should not affect the logic of your component. The result from one of the calls will be ignored.

Here: https://github.com/reactjs/react.dev/blob/bbb08a5a04b0221137e5d60472fc979747af2954/src/content/reference/react/forwardRef.md?plain=1#L45C6-L45C6

Is there really a missing section, or that's an extra link, accidentally copied from the useState page?

@rickhanlonii
Copy link
Member

Thanks for reporting! I pushed a PR to fix the link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants