From 1a3a3ef9bbb602f0fdb65ec329094759663b2ea3 Mon Sep 17 00:00:00 2001 From: Sandra Dylus Date: Thu, 4 Jul 2024 07:45:17 +0200 Subject: [PATCH 1/3] fix: Correct reference to sandboxed file App.js in challenge (#7010) --- src/content/learn/reusing-logic-with-custom-hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/reusing-logic-with-custom-hooks.md b/src/content/learn/reusing-logic-with-custom-hooks.md index 13a556c7b..67de5e97f 100644 --- a/src/content/learn/reusing-logic-with-custom-hooks.md +++ b/src/content/learn/reusing-logic-with-custom-hooks.md @@ -1899,7 +1899,7 @@ export default function Counter() { } ``` -You'll need to write your custom Hook in `useCounter.js` and import it into the `Counter.js` file. +You'll need to write your custom Hook in `useCounter.js` and import it into the `App.js` file. From 2a2e02f1d88f4d2828728ce352626e84ed8abda0 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 5 Jul 2024 19:12:29 +0800 Subject: [PATCH 2/3] Update compiler docs for Rspack and Rsbuild apps (#7031) --- src/content/learn/react-compiler.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/content/learn/react-compiler.md b/src/content/learn/react-compiler.md index d40c064ca..f34c382ed 100644 --- a/src/content/learn/react-compiler.md +++ b/src/content/learn/react-compiler.md @@ -357,6 +357,14 @@ Please refer to [Expo's docs](https://docs.expo.dev/preview/react-compiler/) to React Native uses Babel via Metro, so refer to the [Usage with Babel](#usage-with-babel) section for installation instructions. +### Rspack {/*usage-with-rspack*/} + +Please refer to [Rspack's docs](https://rspack.dev/guide/tech/react#react-compiler) to enable and use the React Compiler in Rspack apps. + +### Rsbuild {/*usage-with-rsbuild*/} + +Please refer to [Rsbuild's docs](https://rsbuild.dev/guide/framework/react#react-compiler) to enable and use the React Compiler in Rsbuild apps. + ## Troubleshooting {/*troubleshooting*/} To report issues, please first create a minimal repro on the [React Compiler Playground](https://playground.react.dev/) and include it in your bug report. You can open issues in the [facebook/react](https://github.com/facebook/react/issues) repo. From 4c91abc78b20be10e7d40cf57a80a6a6247e6e9a Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Wed, 10 Jul 2024 11:48:48 -0400 Subject: [PATCH 3/3] Update /link/legacy-context to removal blog post (#7047) --- vercel.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vercel.json b/vercel.json index 9edafb3d4..eac0efb9c 100644 --- a/vercel.json +++ b/vercel.json @@ -91,7 +91,7 @@ }, { "source": "/link/legacy-context", - "destination": "https://legacy.reactjs.org/docs/legacy-context.html", + "destination": "https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-removing-legacy-context", "permanent": false }, {