Skip to content

Commit 9f52127

Browse files
authored
Merge pull request #573 from reactjs/sync-2a2e02f1
Sync with react.dev @ 2a2e02f
2 parents 8bcf0da + b0f9b87 commit 9f52127

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
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

0 commit comments

Comments
 (0)