react/compiler
mofeiZ 792fa065ca
[compiler][ez] Clean up pragma parsing for tests + playground (#31347)
Move environment config parsing for `inlineJsxTransform`,
`lowerContextAccess`, and some dev-only options out of snap (test
fixture). These should now be available for playground via
`@inlineJsxTransform` and `lowerContextAccess`.

Other small change:
Changed zod fields from `nullish()` -> `nullable().default(null)`.
[`nullish`](https://zod.dev/?id=nullish) fields accept `null |
undefined` and default to `undefined`. We don't distinguish between null
and undefined for any of these options, so let's only accept null +
default to null. This also makes EnvironmentConfig in the playground
more accurate. Previously, some fields just didn't show up as
`prettyFormat({field: undefined})` does not print `field`.
2024-11-05 18:19:44 -05:00
..
apps/playground [compiler][ez] Clean up pragma parsing for tests + playground (#31347) 2024-11-05 18:19:44 -05:00
crates Fix rust lints 2024-08-06 14:48:32 -04:00
docs Punctuation & correcting spelling mistakes (#30592) 2024-08-09 14:53:53 -07:00
fixtures [cleanup] Remove compiler runtime-compat fixture library (#31430) 2024-11-05 14:14:39 -05:00
packages [compiler][ez] Clean up pragma parsing for tests + playground (#31347) 2024-11-05 18:19:44 -05:00
scripts [ci:compiler] Only add latest tag to non-experimental (#31288) 2024-10-18 13:24:30 -04:00
.eslintrc.js
.gitignore
Cargo.lock
Cargo.toml
package.json [snap] Add react-compiler-runtime as a dependency (#31142) 2024-10-07 16:38:06 -04:00
README.md
rust-toolchain.toml
rustfmt.toml
yarn.lock [compiler] Update react deps to experimental instead of beta (#31385) 2024-10-29 21:51:41 -04:00

React Compiler

React Compiler is a compiler that optimizes React applications, ensuring that only the minimal parts of components and hooks will re-render when state changes. The compiler also validates that components and hooks follow the Rules of React.

More information about the design and architecture of the compiler are covered in the Design Goals.

More information about developing the compiler itself is covered in the Development Guide.