Skip to content

Commit 4910ba3

Browse files
authored
Merge pull request #509 from reactjs/sync-4c91abc7
Sync with react.dev @ 4c91abc
2 parents b30012d + 5039264 commit 4910ba3

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/content/learn/react-compiler.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,14 @@ Please refer to [Expo's docs](https://docs.expo.dev/preview/react-compiler/) to
357357

358358
React Native uses Babel via Metro, so refer to the [Usage with Babel](#usage-with-babel) section for installation instructions.
359359

360+
### Rspack {/*usage-with-rspack*/}
361+
362+
Please refer to [Rspack's docs](https://rspack.dev/guide/tech/react#react-compiler) to enable and use the React Compiler in Rspack apps.
363+
364+
### Rsbuild {/*usage-with-rsbuild*/}
365+
366+
Please refer to [Rsbuild's docs](https://rsbuild.dev/guide/framework/react#react-compiler) to enable and use the React Compiler in Rsbuild apps.
367+
360368
## Troubleshooting {/*troubleshooting*/}
361369

362370
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.

src/content/learn/reusing-logic-with-custom-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1899,7 +1899,7 @@ export default function Counter() {
18991899
}
19001900
```
19011901
1902-
You'll need to write your custom Hook in `useCounter.js` and import it into the `Counter.js` file.
1902+
You'll need to write your custom Hook in `useCounter.js` and import it into the `App.js` file.
19031903
19041904
<Sandpack>
19051905

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
},
9292
{
9393
"source": "/link/legacy-context",
94-
"destination": "https://legacy.reactjs.org/docs/legacy-context.html",
94+
"destination": "https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-removing-legacy-context",
9595
"permanent": false
9696
},
9797
{

0 commit comments

Comments
 (0)