Skip to content

Commit 57f28be

Browse files
rickhanloniiAndyPengc12
authored andcommitted
Update /link URLs to react.dev (facebook#28477)
Depends on reactjs/react.dev#6670 [merged]
1 parent e632424 commit 57f28be

File tree

72 files changed

+218
-218
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+218
-218
lines changed

packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6747,7 +6747,7 @@ const tests = {
67476747
' }\n' +
67486748
' fetchData();\n' +
67496749
`}, [someId]); // Or [] if effect doesn't need props or state\n\n` +
6750-
'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching',
6750+
'Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching',
67516751
suggestions: undefined,
67526752
},
67536753
],
@@ -6771,7 +6771,7 @@ const tests = {
67716771
' }\n' +
67726772
' fetchData();\n' +
67736773
`}, [someId]); // Or [] if effect doesn't need props or state\n\n` +
6774-
'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching',
6774+
'Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching',
67756775
suggestions: undefined,
67766776
},
67776777
],

packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default {
111111
' }\n' +
112112
' fetchData();\n' +
113113
`}, [someId]); // Or [] if effect doesn't need props or state\n\n` +
114-
'Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching',
114+
'Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching',
115115
});
116116
}
117117

packages/react-client/src/__tests__/ReactFlight-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ describe('ReactFlight', () => {
994994
}).toErrorDev(
995995
'Each child in a list should have a unique "key" prop.\n' +
996996
'\n' +
997-
'Check the render method of `Component`. See https://reactjs.org/link/warning-keys for more information.\n' +
997+
'Check the render method of `Component`. See https://react.dev/link/warning-keys for more information.\n' +
998998
' in span (at **)\n' +
999999
' in Component (at **)\n' +
10001000
' in Indirection (at **)\n' +
@@ -1251,7 +1251,7 @@ describe('ReactFlight', () => {
12511251
ReactNoopFlightClient.read(transport);
12521252
}).toErrorDev(
12531253
'Each child in a list should have a unique "key" prop. ' +
1254-
'See https://reactjs.org/link/warning-keys for more information.',
1254+
'See https://react.dev/link/warning-keys for more information.',
12551255
);
12561256
});
12571257

packages/react-debug-tools/src/__tests__/ReactHooksInspectionIntegration-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,7 @@ describe('ReactHooksInspectionIntegration', () => {
18831883
'1. You might have mismatching versions of React and the renderer (such as React DOM)\n' +
18841884
'2. You might be breaking the Rules of Hooks\n' +
18851885
'3. You might have more than one copy of React in the same app\n' +
1886-
'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.',
1886+
'See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.',
18871887
);
18881888
didCatch = true;
18891889
}

packages/react-devtools-shared/src/__tests__/inspectedElement-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,7 @@ describe('InspectedElement', () => {
25582558
{
25592559
"errors": [
25602560
[
2561-
"Warning: Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.
2561+
"Warning: Each child in a list should have a unique "key" prop. See https://react.dev/link/warning-keys for more information.
25622562
at Example",
25632563
1,
25642564
],

packages/react-devtools-shared/src/hook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export function installHook(target: any): DevToolsHook | null {
168168
'React is running in production mode, but dead code ' +
169169
'elimination has not been applied. Read how to correctly ' +
170170
'configure React for production: ' +
171-
'https://reactjs.org/link/perf-use-production-build',
171+
'https://react.dev/link/perf-use-production-build',
172172
);
173173
});
174174
}

packages/react-dom-bindings/src/client/ReactDOMComponent.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ function setProp(
610610
if (typeof value !== 'object' || !('__html' in value)) {
611611
throw new Error(
612612
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' +
613-
'Please visit https://reactjs.org/link/dangerously-set-inner-html ' +
613+
'Please visit https://react.dev/link/dangerously-set-inner-html ' +
614614
'for more information.',
615615
);
616616
}
@@ -938,7 +938,7 @@ function setPropOnCustomElement(
938938
if (typeof value !== 'object' || !('__html' in value)) {
939939
throw new Error(
940940
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' +
941-
'Please visit https://reactjs.org/link/dangerously-set-inner-html ' +
941+
'Please visit https://react.dev/link/dangerously-set-inner-html ' +
942942
'for more information.',
943943
);
944944
}
@@ -1502,7 +1502,7 @@ export function updateProperties(
15021502
'This is likely caused by the value changing from undefined to ' +
15031503
'a defined value, which should not happen. ' +
15041504
'Decide between using a controlled or uncontrolled input ' +
1505-
'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components',
1505+
'element for the lifetime of the component. More info: https://react.dev/link/controlled-components',
15061506
);
15071507
didWarnUncontrolledToControlled = true;
15081508
}
@@ -1516,7 +1516,7 @@ export function updateProperties(
15161516
'This is likely caused by the value changing from a defined to ' +
15171517
'undefined, which should not happen. ' +
15181518
'Decide between using a controlled or uncontrolled input ' +
1519-
'element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components',
1519+
'element for the lifetime of the component. More info: https://react.dev/link/controlled-components',
15201520
);
15211521
didWarnControlledToUncontrolled = true;
15221522
}

packages/react-dom-bindings/src/client/ReactDOMInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function validateInputProps(element: Element, props: Object) {
5656
'(specify either the checked prop, or the defaultChecked prop, but not ' +
5757
'both). Decide between using a controlled or uncontrolled input ' +
5858
'element and remove one of these props. More info: ' +
59-
'https://reactjs.org/link/controlled-components',
59+
'https://react.dev/link/controlled-components',
6060
getCurrentFiberOwnerNameInDevOrNull() || 'A component',
6161
props.type,
6262
);
@@ -73,7 +73,7 @@ export function validateInputProps(element: Element, props: Object) {
7373
'(specify either the value prop, or the defaultValue prop, but not ' +
7474
'both). Decide between using a controlled or uncontrolled input ' +
7575
'element and remove one of these props. More info: ' +
76-
'https://reactjs.org/link/controlled-components',
76+
'https://react.dev/link/controlled-components',
7777
getCurrentFiberOwnerNameInDevOrNull() || 'A component',
7878
props.type,
7979
);

packages/react-dom-bindings/src/client/ReactDOMSelect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function validateSelectProps(element: Element, props: Object) {
135135
'(specify either the value prop, or the defaultValue prop, but not ' +
136136
'both). Decide between using a controlled or uncontrolled select ' +
137137
'element and remove one of these props. More info: ' +
138-
'https://reactjs.org/link/controlled-components',
138+
'https://react.dev/link/controlled-components',
139139
);
140140
didWarnValueDefaultValue = true;
141141
}

packages/react-dom-bindings/src/client/ReactDOMTextarea.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function validateTextareaProps(element: Element, props: Object) {
4444
'(specify either the value prop, or the defaultValue prop, but not ' +
4545
'both). Decide between using a controlled or uncontrolled textarea ' +
4646
'and remove one of these props. More info: ' +
47-
'https://reactjs.org/link/controlled-components',
47+
'https://react.dev/link/controlled-components',
4848
getCurrentFiberOwnerNameInDevOrNull() || 'A component',
4949
);
5050
didWarnValDefaultVal = true;

0 commit comments

Comments
 (0)