Skip to content

Commit 58c1a3a

Browse files
🤖 Merge PR DefinitelyTyped#74056 docs(react-dom): updated react url by @jerome-baret-curious
1 parent 91c61d9 commit 58c1a3a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎types/react-dom/client.d.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function createRoot(container: Container, options?: RootOptions): Root;
9696
* hydrateRoot(document.querySelector('#root'), <App />)
9797
* ```
9898
*
99-
* @see https://reactjs.org/docs/react-dom-client.html#hydrateroot
99+
* @see https://react.dev/reference/react-dom/client/hydrateRoot
100100
*/
101101
export function hydrateRoot(
102102
container: Element | Document,

‎types/react-dom/server.d.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export interface ServerOptions {
9494
/**
9595
* Only available in the environments with [Node.js Streams](https://nodejs.dev/learn/nodejs-streams).
9696
*
97-
* @see [API](https://reactjs.org/docs/react-dom-server.html#rendertopipeablestream)
97+
* @see [API](https://react.dev/reference/react-dom/server/renderToPipeableStream)
9898
*
9999
* @param children
100100
* @param options
@@ -149,7 +149,7 @@ export interface ReactDOMServerReadableStream extends ReadableStream {
149149
/**
150150
* Only available in the environments with [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) (this includes browsers, Deno, and some modern edge runtimes).
151151
*
152-
* @see [API](https://reactjs.org/docs/react-dom-server.html#rendertoreadablestream)
152+
* @see [API](https://react.dev/reference/react-dom/server/renderToReadableStream)
153153
*/
154154
export function renderToReadableStream(
155155
children: ReactNode,

‎types/react-dom/test/react-dom-tests.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ function pipeableStreamDocumentedStringExample() {
343343
}
344344

345345
/**
346-
* source: https://reactjs.org/docs/react-dom-server.html#rendertoreadablestream
346+
* source: https://react.dev/reference/react-dom/server/renderToReadableStream
347347
*/
348348
async function readableStreamDocumentedExample() {
349349
const controller = new AbortController();
@@ -383,7 +383,7 @@ async function readableStreamDocumentedExample() {
383383
}
384384

385385
/**
386-
* source: https://reactjs.org/docs/react-dom-server.html#rendertoreadablestream
386+
* source: https://react.dev/reference/react-dom/server/renderToReadableStream
387387
*/
388388
async function readableStreamDocumentedStringExample() {
389389
const controller = new AbortController();

0 commit comments

Comments
 (0)