Skip to content

Commit 98bb99e

Browse files
authored
Fix typo
1 parent 3d87a27 commit 98bb99e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beta/src/content/apis/react-dom/server/renderToReadableStream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const assetMap = {
135135
async function handler(request) {
136136
const stream = await renderToReadableStream(<App assetMap={assetMap} />, {
137137
// Careful: It's safe to stringify() this because this data isn't user-generated.
138-
bootstrapScriptContents: `window.assetMap = ${JSON.stringify(assetMap)};`,
138+
bootstrapScriptContent: `window.assetMap = ${JSON.stringify(assetMap)};`,
139139
bootstrapScripts: [assets['/main.js']],
140140
});
141141
return new Response(stream, {
@@ -144,7 +144,7 @@ async function handler(request) {
144144
}
145145
```
146146
147-
In the example above, the `bootstrapScriptContents` option adds an extra inline `<script>` tag that sets the global `window.assetMap` variable on the client. This lets the client code read the same `assetMap`:
147+
In the example above, the `bootstrapScriptContent` option adds an extra inline `<script>` tag that sets the global `window.assetMap` variable on the client. This lets the client code read the same `assetMap`:
148148
149149
```js {4}
150150
import {hydrateRoot} from 'react-dom/client';

0 commit comments

Comments
 (0)