Skip to content

Commit 79b5d1b

Browse files
author
Open Source Contributor
committed
docs: fix typos in documentation
1 parent abe931a commit 79b5d1b

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/content/learn/synchronizing-with-effects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ A common pitfall for preventing Effects firing twice in development is to use a
607607
```js {1,3-4}
608608
const connectionRef = useRef(null);
609609
useEffect(() => {
610-
// 🚩 This wont fix the bug!!!
610+
// 🚩 This won't fix the bug!!!
611611
if (!connectionRef.current) {
612612
connectionRef.current = createConnection();
613613
connectionRef.current.connect();

src/content/reference/dev-tools/react-performance-tracks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,5 @@ If you await a Promise, React will display duration of that Promise. To see all
155155

156156
Different colors are used to indicate the duration of the component render. The darker the color, the longer the duration.
157157

158-
The Server Components track group will always contain a "Primary" track. If React is able to render Server Components concurrently, it will display addititional "Parallel" tracks.
158+
The Server Components track group will always contain a "Primary" track. If React is able to render Server Components concurrently, it will display additional "Parallel" tracks.
159159
If more than 8 Server Components are rendered concurrently, React will associate them with the last "Parallel" track instead of adding more tracks.

src/content/reference/eslint-plugin-react-hooks/lints/use-memo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function Component({user}) {
7979
}
8080
```
8181

82-
If the side effect sychronizes React state with some external state (or vice versa), use `useEffect`:
82+
If the side effect synchronizes React state with some external state (or vice versa), use `useEffect`:
8383

8484
```js
8585
// ✅ Good: Synchronization in useEffect

src/content/reference/react-dom/client/createRoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ const container = document.getElementById("root");
419419
const root = createRoot(container, {
420420
// Keep in mind to remove these options in development to leverage
421421
// React's default handlers or implement your own overlay for development.
422-
// The handlers are only specfied unconditionally here for demonstration purposes.
422+
// The handlers are only specified unconditionally here for demonstration purposes.
423423
onCaughtError: onCaughtErrorProd,
424424
onRecoverableError: onRecoverableErrorProd,
425425
onUncaughtError: onUncaughtErrorProd,

src/content/reference/react-dom/client/hydrateRoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ const container = document.getElementById("root");
442442
hydrateRoot(container, <App />, {
443443
// Keep in mind to remove these options in development to leverage
444444
// React's default handlers or implement your own overlay for development.
445-
// The handlers are only specfied unconditionally here for demonstration purposes.
445+
// The handlers are only specified unconditionally here for demonstration purposes.
446446
onCaughtError: onCaughtErrorProd,
447447
onRecoverableError: onRecoverableErrorProd,
448448
onUncaughtError: onUncaughtErrorProd,

src/content/reference/react-dom/flushSync.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ useEffect(() => {
196196
}, []);
197197
```
198198

199-
This will allow the current render to finish and schedule another syncronous render to flush the updates.
199+
This will allow the current render to finish and schedule another synchronous render to flush the updates.
200200

201201
<Pitfall>
202202

src/content/reference/react-dom/server/resume.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ async function main(frame) {
175175
// Layer 2
176176
// Just waiting here for demonstration purposes.
177177
// In a real app, the prelude and postponed state would've been serialized in Layer 1 and Layer would deserialize them.
178-
// The prelude content could be flushed immediated as plain HTML while
178+
// The prelude content could be flushed immediately as plain HTML while
179179
// React is continuing to render from where the prerender left off.
180180
await sleep(2000);
181181

src/content/reference/react/StrictMode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ li {
12261226
12271227
</Sandpack>
12281228
1229-
Now on inital mount in StrictMode, the ref callbacks are all setup, cleaned up, and setup again:
1229+
Now on initial mount in StrictMode, the ref callbacks are all setup, cleaned up, and setup again:
12301230
12311231
```
12321232
...

0 commit comments

Comments
 (0)