Skip to content

Commit 0078b50

Browse files
authored
React19 blog post typos (#6780)
1 parent c8a316a commit 0078b50

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/content/blog/2024/04/25/react-19.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function Comments({commentsPromise}) {
248248
// NOTE: this will resume the promise from the server.
249249
// It will suspend until the data is available.
250250
const comments = use(commentsPromise);
251-
return comments.map(commment => <p>{comment}</p>);
251+
return comments.map(comment => <p>{comment}</p>);
252252
}
253253
```
254254

@@ -314,7 +314,7 @@ React 19 includes all of the React Server Components features included from the
314314

315315
Bundler and framework support for React Server Components can be built on React 19, but the underlying APIs will not follow semver and may break between minors in React 19.x.
316316

317-
To support React Server Components, we recommend pinning to a specific React version, or using the Canary release. We will continue working with bundlers and frameworks to stablize support for React Server Components in future versions.
317+
To support React Server Components, we recommend pinning to a specific React version, or using the Canary release. We will continue working with bundlers and frameworks to stabilize support for React Server Components in future versions.
318318

319319
</Note>
320320

@@ -495,11 +495,11 @@ You can codemod this pattern with [`no-implicit-ref-callback-return
495495

496496
### `useDeferredValue` initial value {/*use-deferred-value-initial-value*/}
497497

498-
We've added an `initalValue` option to `useDeferredValue`:
498+
We've added an `initialValue` option to `useDeferredValue`:
499499

500500
```js [[1, 1, "deferredValue"], [1, 4, "deferredValue"], [2, 4, "''"]]
501501
function Search({deferredValue}) {
502-
// On inital render the value is ''.
502+
// On initial render the value is ''.
503503
// Then a re-render is scheduled with the deferredValue.
504504
const value = useDeferredValue(deferredValue, '');
505505

@@ -647,7 +647,7 @@ function MyComponent() {
647647
}
648648
```
649649
```html
650-
<!-- the above would resul in the following DOM/HTML -->
650+
<!-- the above would result in the following DOM/HTML -->
651651
<html>
652652
<head>
653653
<!-- links/scripts are prioritized by their utility to early loading, not call order -->
@@ -667,7 +667,7 @@ These APIs can be used to optimize initial page loads by moving discovery of add
667667
668668
For more details see [Resource Preloading APIs](/reference/react-dom#resource-preloading-apis).
669669
670-
### Compatability with third-party scripts and extensions {/*compatability-with-third-party-scripts-and-extensions*/}
670+
### Compatibility with third-party scripts and extensions {/*compatibility-with-third-party-scripts-and-extensions*/}
671671
672672
We've improved hydration to account for third-party scripts and browser extensions.
673673

0 commit comments

Comments
 (0)