Conversation
183b9d2 to
b3dd75e
Compare
Blog post for Compiler RC
| 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). | ||
|
|
||
| ## Migrating from eslint-plugin-react-compiler to eslint-plugin-react-hooks {/*migrating-from-eslint-plugin-react-compiler-to-eslint-plugin-react-hooks*/} | ||
| To install eslint-plugin-react-hooks: |
There was a problem hiding this comment.
| To install eslint-plugin-react-hooks: | |
| To install `eslint-plugin-react-hooks`: |
There was a problem hiding this comment.
Or maybe provide some more context here:
If you have already installed
eslint-plugin-react-compiler, you can now remove it and useeslint-plugin-react-hooks@6.0.0.
There was a problem hiding this comment.
I think this is mentioned below, but I would mention it first because this is very important/interesting info. I would also drop or de-emphasize the typescript port because it's not relevant to new users.
There was a problem hiding this comment.
Yeah I mainly wanted to do it to credit the contributor, I'll push it down a bit
|
|
||
| 1. We're publishing React Compiler RC today, in preparation of the compiler's stable release. | ||
| 2. We're simplifying your eslint setup by merging `eslint-plugin-react-compiler` into `eslint-plugin-react-hooks`. | ||
| 3. We're working with the swc and oxc teams to add plugins to allow for Babel-free build pipelines. |
There was a problem hiding this comment.
Doesn't this RC include support for swc?
We've added support for swc and working with oxc to support babel-free builds.
| 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. | ||
|
|
||
| ## swc and oxc support (experimental) {/*swc-and-oxc-support-experimental*/} | ||
| 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. |
There was a problem hiding this comment.
This makes it sound like swc is nextjs only, or that we're only doing it to support nextjs. We should include guides for other frameworkds/build tools like Parcel.
There was a problem hiding this comment.
There are already guides in the docs, this is just what's new. Any suggestions on making that clearer?
Blog post for Compiler RC