Skip to content

Commit 4c5cf8e

Browse files
committed
fix(doc): use renderToPipeableStream
1 parent d213795 commit 4c5cf8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/useId.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ function App() {
323323

324324
import ReactServer from 'react-dom/server';
325325

326-
const html = ReactServer.renderToString(<App />, { identifierPrefix: 'react-app1' });
326+
const { pipe } = ReactServer.renderToPipeableStream(<App />, { identifierPrefix: 'react-app1' });
327327
// ...
328328

329329
```

0 commit comments

Comments
 (0)