[compiler] Add readme for babel plugin
Adds a simple readme for the babel plugin with links to the docs. ghstack-source-id: 4dac0b2a4b2e2114e369dd8f63eea55909f668c1 Pull Request resolved: https://github.com/facebook/react/pull/29084
Lauren Tan committed
May 15, 2024 at 16:26 UTC
50c999eb0e1a583cc4e5309aa8f976d8376f866b
1 file changed
+5
compiler/packages/babel-plugin-react-compiler/README.md
new
+5
@@ -0,0 +1,5 @@
1
+# babel-plugin-react-compiler
2
+
3
+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.
4
+
5
+This package contains the React Compiler Babel plugin use in projects that make use of Babel. You can find instructions for using this plugin here: https://react.dev/learn/react-compiler