Skip to content

Commit 4e3d63a

Browse files
authored
Fix typos in React Compiler guide (#6875)
1 parent 8d69e6e commit 4e3d63a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/learn/react-compiler.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ In addition to these docs, we recommend checking the [React Compiler Working Gro
4949
### Rolling out the compiler to your codebase {/*using-the-compiler-effectively*/}
5050

5151
#### Existing projects {/*existing-projects*/}
52-
The compiler is designed to compile functional components and hooks that follows the [Rules of React](/reference/rules). It can also handle code that breaks those rules by bailing out (skipping over) those components or hooks. However, due to the flexible nature of JavaScript, the compiler cannot catch every possible violation and may compile with false negatives: that is, the compiler may accidentally compile a component/hook that breaks the Rules of React which can lead to undefined behavior.
52+
The compiler is designed to compile functional components and hooks that follow the [Rules of React](/reference/rules). It can also handle code that breaks those rules by bailing out (skipping over) those components or hooks. However, due to the flexible nature of JavaScript, the compiler cannot catch every possible violation and may compile with false negatives: that is, the compiler may accidentally compile a component/hook that breaks the Rules of React which can lead to undefined behavior.
5353

54-
For this reason, to adopt the compiler successfully on existing projects, we recommend running it on a small directory in your product code first. You can do by configuring the compiler to only run on specific set of directories:
54+
For this reason, to adopt the compiler successfully on existing projects, we recommend running it on a small directory in your product code first. You can do this by configuring the compiler to only run on a specific set of directories:
5555

5656
```js {3}
5757
const ReactCompilerConfig = {

0 commit comments

Comments
 (0)