Skip to content

Commit

Permalink
Merge pull request #114 from reactjs/sync-2a2e02f1
Browse files Browse the repository at this point in the history
Sync with react.dev @ 2a2e02f
  • Loading branch information
srikanth-kandi authored Jul 15, 2024
2 parents ef7a3cd + 8a0cec9 commit d09335c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/content/learn/react-compiler.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/content/learn/reusing-logic-with-custom-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
<Sandpack>
Expand Down

0 comments on commit d09335c

Please sign in to comment.