Skip to content

Commit 0cf08f2

Browse files
committed
Compiler blog post edits
Tweaks to the post.
1 parent 3a88efd commit 0cf08f2

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

src/content/blog/2024/10/21/react-compiler-beta-release.md

+8
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ October 21, 2024 by [Lauren Tan](https://twitter.com/potetotes).
1010

1111
---
1212

13+
<Note>
14+
15+
### React Compiler is now in RC! {/*react-compiler-is-now-in-rc*/}
16+
17+
Please see the [RC blog post](/blog/2025/04/21/react-compiler-rc) for details.
18+
19+
</Note>
20+
1321
<Intro>
1422

1523
The React team is excited to share new updates:

src/content/blog/2025/04/21/react-compiler-rc.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ The React team is excited to share new updates:
1717
</Intro>
1818

1919
1. We're publishing React Compiler RC today, in preparation of the compiler's stable release.
20-
2. We're simplifying your eslint setup by merging `eslint-plugin-react-compiler` into `eslint-plugin-react-hooks`.
21-
3. We're working with the swc and oxc teams to add plugins to allow for Babel-free build pipelines.
20+
2. We're merging `eslint-plugin-react-compiler` into `eslint-plugin-react-hooks`.
21+
3. We've added support for swc and are working with oxc to support Babel-free builds.
2222

2323
---
2424

@@ -54,25 +54,25 @@ You can find more details on using the Compiler in [our docs](https://react.dev/
5454
As noted in the Beta announcement, React Compiler is compatible with React 17 and up. If you are not yet on React 19, you can use React Compiler by specifying a minimum target in your compiler config, and adding `react-compiler-runtime` as a dependency. You can find docs on this [here](https://react.dev/learn/react-compiler#using-react-compiler-with-react-17-or-18).
5555

5656
## Migrating from eslint-plugin-react-compiler to eslint-plugin-react-hooks {/*migrating-from-eslint-plugin-react-compiler-to-eslint-plugin-react-hooks*/}
57-
To install eslint-plugin-react-hooks:
57+
If you have already installed eslint-plugin-react-compiler, you can now remove it and use `eslint-plugin-react-hooks@^6.0.0-rc.1`. Many thanks to [@michaelfaith](https://bsky.app/profile/michael.faith) for contributing to this improvement!
58+
59+
To install:
5860

5961
npm
6062
<TerminalBlock>
61-
{`npm install --save-dev eslint-plugin-react-hooks@^6.0.0`}
63+
{`npm install --save-dev eslint-plugin-react-hooks@^6.0.0-rc.1`}
6264
</TerminalBlock>
6365

6466
pnpm
6567
<TerminalBlock>
66-
{`pnpm add --save-dev eslint-plugin-react-hooks@^6.0.0`}
68+
{`pnpm add --save-dev eslint-plugin-react-hooks@^6.0.0-rc.1`}
6769
</TerminalBlock>
6870

6971
yarn
7072
<TerminalBlock>
71-
{`yarn add --dev eslint-plugin-react-hooks@^6.0.0`}
73+
{`yarn add --dev eslint-plugin-react-hooks@^6.0.0-rc.1`}
7274
</TerminalBlock>
7375

74-
`eslint-plugin-react-hooks` 5.2.0 has been ported to TypeScript, which allowed us to improve the type-safety of the plugin. In the 6.0.0 release of the ESLint plugin, the compiler lint rule has now been merged in. If you were previously using `eslint-plugin-react-compiler`, this means you can now use a single ESLint plugin in your codebase. Many thanks to [@michaelfaith](https://bsky.app/profile/michael.faith) for contributing to this improvement!
75-
7676
```js
7777
// eslint.config.js
7878
import*asreactHooksfrom'eslint-plugin-react-hooks';
@@ -89,7 +89,11 @@ export default [
8989
The linter does not require the compiler to be installed, so there's no risk in upgrading eslint-plugin-react-hooks. We recommend everyone upgrade today.
9090

9191
## swc and oxc support (experimental) {/*swc-and-oxc-support-experimental*/}
92-
We have also been collaborating with Kang Dongyoong ([@kdy1dev](https://x.com/kdy1dev)) from the [swc](https://swc.rs/) team on adding support for React Compiler as an swc plugin. As part of the RC release, you can integrate the compiler into your [Next.js app with swc](https://nextjs.org/docs/app/api-reference/config/next-config-js/reactCompiler) instead of babel. We are also working with the [oxc](https://oxc.rs/) team to [add support for the compiler](https://github.com/oxc-project/oxc/issues/10048), which should allow more people to use the compiler if they have already migrated off of Babel.
92+
React Compiler can be installed across [several build tools](/learn/react-compiler#installation) such as Babel, Vite, and Rsbuild.
93+
94+
We have been collaborating with Kang Dongyoong ([@kdy1dev](https://x.com/kdy1dev)) from the [swc](https://swc.rs/) team on adding additional support for React Compiler as an swc plugin. As part of the RC release, you can now integrate the compiler into your [Next.js app with swc](https://nextjs.org/docs/app/api-reference/config/next-config-js/reactCompiler) instead of Babel.
95+
96+
We are also working with the [oxc](https://oxc.rs/) team to [add support for the compiler](https://github.com/oxc-project/oxc/issues/10048), which should allow more people to use the compiler if they have already migrated off of Babel.
9397

9498
Next.js users can upgrade to [15.3.1](https://github.com/vercel/next.js/releases/tag/v15.3.1) or greater to try this out. If you have already enabled the compiler in your Next.js's config, swc support will be enabled automatically.
9599

0 commit comments

Comments
 (0)
close