From d1734de767faaf1c7e3e378ac2970e68d2ccb5a3 Mon Sep 17 00:00:00 2001 From: Stephan Noel Date: Wed, 22 Oct 2025 01:11:08 -0400 Subject: [PATCH 1/2] Fix optimization link pointing to legacy docs --- src/content/learn/render-and-commit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/render-and-commit.md b/src/content/learn/render-and-commit.md index f9b05e185a8..949611d4086 100644 --- a/src/content/learn/render-and-commit.md +++ b/src/content/learn/render-and-commit.md @@ -142,7 +142,7 @@ Otherwise, you can encounter confusing bugs and unpredictable behavior as your c #### Optimizing performance {/*optimizing-performance*/} -The default behavior of rendering all components nested within the updated component is not optimal for performance if the updated component is very high in the tree. If you run into a performance issue, there are several opt-in ways to solve it described in the [Performance](https://reactjs.org/docs/optimizing-performance.html) section. **Don't optimize prematurely!** +The default behavior of rendering all components nested within the updated component is not optimal for performance if the updated component is very high in the tree. If you run into a performance issue, there are several opt-in ways to solve it described in the [Performance](https://react.dev/reference/react/memo#skipping-re-rendering-when-props-are-unchanged) section. **Don't optimize prematurely!** From 20c7cd7d8e3326fcbcfef57a11f6853d34cc9419 Mon Sep 17 00:00:00 2001 From: Stephan Noel <34415120+stephan-noel@users.noreply.github.com> Date: Wed, 22 Oct 2025 13:29:55 -0300 Subject: [PATCH 2/2] Update src/content/learn/render-and-commit.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use relative link Co-authored-by: Radoš Milićev <40705899+rammba@users.noreply.github.com> --- src/content/learn/render-and-commit.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/render-and-commit.md b/src/content/learn/render-and-commit.md index 949611d4086..22f6ebf4f51 100644 --- a/src/content/learn/render-and-commit.md +++ b/src/content/learn/render-and-commit.md @@ -142,7 +142,7 @@ Otherwise, you can encounter confusing bugs and unpredictable behavior as your c #### Optimizing performance {/*optimizing-performance*/} -The default behavior of rendering all components nested within the updated component is not optimal for performance if the updated component is very high in the tree. If you run into a performance issue, there are several opt-in ways to solve it described in the [Performance](https://react.dev/reference/react/memo#skipping-re-rendering-when-props-are-unchanged) section. **Don't optimize prematurely!** +The default behavior of rendering all components nested within the updated component is not optimal for performance if the updated component is very high in the tree. If you run into a performance issue, there are several opt-in ways to solve it described in the [Performance](/reference/react/memo#skipping-re-rendering-when-props-are-unchanged) section. **Don't optimize prematurely!**