Skip to content

Commit 234f199

Browse files
leedom92facebook-github-bot
authored andcommitted
chore: update all website links about react (facebook#36638)
Summary: New website of React is online, so some links about react should be also updated in README.md. ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [General] [Fixed] - Fix some links about react in readme Pull Request resolved: facebook#36638 Test Plan: The PR just changes some links in readme, don't need to test. Reviewed By: jacdebug Differential Revision: D44959199 Pulled By: blakef fbshipit-source-id: 14a66a2d2b086fbe16f715c621c59a6d8d6ee698
1 parent ebf1079 commit 234f199

File tree

12 files changed

+80
-80
lines changed

12 files changed

+80
-80
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4200,7 +4200,7 @@ This release includes [599 commits by 73 different contributors](https://github.
42004200
- Android tooling has been updated to match newer configuration requirements (SDK 27, gradle 4.4, and support library 27); building with Android plugin 3.2 doesn't work due to the gradle scripts, so **please** stay on Android Studio 3.1 for now
42014201
- Support Babel 7 stable landed! Be sure to read [here](https://blogs.msdn.microsoft.com/typescript/2018/08/27/typescript-and-babel-7/) about using TypeScript and check out the [Babel 7 migration guide](https://babeljs.io/docs/en/next/v7-migration) for help migrating.
42024202
- Metro has been upgraded (with Babel 7 and better transformer support), and in the next major release we plan on having two new features (ram bundles and inline requires) optional for you all to use - you can read how it will happen [here](https://github.com/react-native-community/discussions-and-proposals/blob/master/core-meetings/2018-09-metro-meeting.md); moreover, if you have a custom packager config, we recommend you read also the "updating to this version" section.
4203-
- Flow, React, and related packages have also been updated; this includes [working support](https://github.com/facebook/react-native/commit/5491c3f942430982ce9cb6140ed1733879ed3d1d) for the [React Profiler](https://reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html).
4203+
- Flow, React, and related packages have also been updated; this includes [working support](https://github.com/facebook/react-native/commit/5491c3f942430982ce9cb6140ed1733879ed3d1d) for the [React Profiler](https://react.dev/blog/2018/09/10/introducing-the-react-profiler.html).
42044204

42054205
#### The Slimmening is happening
42064206

@@ -5152,7 +5152,7 @@ year!
51525152
)
51535153
- React is now v16.2.0, and it took react-test-renderer along with it; [now with
51545154
more
5155-
fragments!](https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html)
5155+
fragments!](https://react.dev/blog/2017/11/28/react-v16.2.0-fragment-support.html)
51565156
🎉 ([c7f37074ac](https://github.com/facebook/react-native/commit/c7f37074ac89f7e568ca26a6bad3bdb02812c39f) and
51575157
[cd938d731c](https://github.com/facebook/react-native/commit/cd938d731c7531a683c050cd829a543d145e3dc1) by
51585158
[@bvaughn](https://github.com/bvaughn))

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ React Native brings [**React**'s][r] declarative UI framework to iOS and Android
5050

5151
React Native is developed and supported by many companies and individual core contributors. Find out more in our [ecosystem overview][e].
5252

53-
[r]: https://reactjs.org/
53+
[r]: https://react.dev/
5454
[p]: https://reactnative.dev/docs/out-of-tree-platforms
5555
[e]: https://github.com/facebook/react-native/blob/HEAD/ECOSYSTEM.md
5656

@@ -90,7 +90,7 @@ The React Native documentation discusses components, APIs, and topics that are s
9090
The source for the React Native documentation and website is hosted on a separate repo, [**@facebook/react-native-website**][repo-website].
9191

9292
[docs]: https://reactnative.dev/docs/getting-started
93-
[r-docs]: https://reactjs.org/docs/getting-started.html
93+
[r-docs]: https://react.dev/learn
9494
[repo-website]: https://github.com/facebook/react-native-website
9595

9696
## 🚀 Upgrading

packages/react-native/Libraries/LogBox/UI/__tests__/LogBoxMessage-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ describe('LogBoxMessage', () => {
213213
<LogBoxMessage
214214
style={{}}
215215
message={{
216-
content: 'http://reactnative.dev',
216+
content: 'https://reactnative.dev',
217217
substitutions: [],
218218
}}
219219
/>,
@@ -227,7 +227,7 @@ describe('LogBoxMessage', () => {
227227
<LogBoxMessage
228228
style={{}}
229229
message={{
230-
content: 'http://reactnative.dev and http://reactjs.org',
230+
content: 'https://reactnative.dev and https://react.dev',
231231
substitutions: [],
232232
}}
233233
/>,
@@ -242,7 +242,7 @@ describe('LogBoxMessage', () => {
242242
style={{}}
243243
maxLength={35}
244244
message={{
245-
content: 'http://reactnative.dev and http://reactjs.org',
245+
content: 'https://reactnative.dev and https://react.dev',
246246
substitutions: [],
247247
}}
248248
/>,

packages/react-native/Libraries/LogBox/UI/__tests__/__snapshots__/LogBoxMessage-test.js.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ exports[`LogBoxMessage Should handle multiple links 1`] = `
1010
}
1111
}
1212
>
13-
http://reactnative.dev
13+
https://reactnative.dev
1414
</Text>
1515
<Text>
1616
and
@@ -23,7 +23,7 @@ exports[`LogBoxMessage Should handle multiple links 1`] = `
2323
}
2424
}
2525
>
26-
http://reactjs.org
26+
https://react.dev
2727
</Text>
2828
</Text>
2929
`;
@@ -38,10 +38,10 @@ exports[`LogBoxMessage Should handle truncated links 1`] = `
3838
}
3939
}
4040
>
41-
http://reactnative.dev
41+
https://reactnative.dev
4242
</Text>
4343
<Text>
44-
and http://r
44+
and https:/
4545
</Text>
4646
</Text>
4747
`;
@@ -56,7 +56,7 @@ exports[`LogBoxMessage Should make links tappable 1`] = `
5656
}
5757
}
5858
>
59-
http://reactnative.dev
59+
https://reactnative.dev
6060
</Text>
6161
</Text>
6262
`;

packages/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ var invokeGuardedCallbackImpl = invokeGuardedCallbackProd;
286286
error = new Error(
287287
"A cross-origin error was thrown. React doesn't have access to " +
288288
"the actual error object in development. " +
289-
"See https://reactjs.org/link/crossorigin-error for more information."
289+
"See https://react.dev/link/crossorigin-error for more information."
290290
);
291291
}
292292

@@ -857,7 +857,7 @@ function getPooledWarningPropertyDefinition(propName, getVal) {
857857
"This synthetic event is reused for performance reasons. If you're seeing this, " +
858858
"you're %s `%s` on a released/nullified synthetic event. %s. " +
859859
"If you must keep the original synthetic event around, use event.persist(). " +
860-
"See https://reactjs.org/link/event-pooling for more information.",
860+
"See https://react.dev/link/event-pooling for more information.",
861861
action,
862862
propName,
863863
result
@@ -4115,7 +4115,7 @@ function injectInternals(internals) {
41154115
error(
41164116
"The installed version of React DevTools is too old and will not work " +
41174117
"with the current version of React. Please update React DevTools. " +
4118-
"https://reactjs.org/link/react-devtools"
4118+
"https://react.dev/link/react-devtools"
41194119
);
41204120
} // DevTools exists, even though it doesn't support Fiber.
41214121

@@ -6628,7 +6628,7 @@ var ReactStrictModeWarnings = {
66286628

66296629
error(
66306630
"Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. " +
6631-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
6631+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
66326632
"* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" +
66336633
"\nPlease update the following components: %s",
66346634
sortedNames
@@ -6643,11 +6643,11 @@ var ReactStrictModeWarnings = {
66436643
error(
66446644
"Using UNSAFE_componentWillReceiveProps in strict mode is not recommended " +
66456645
"and may indicate bugs in your code. " +
6646-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
6646+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
66476647
"* Move data fetching code or side effects to componentDidUpdate.\n" +
66486648
"* If you're updating state whenever props change, " +
66496649
"refactor your code to use memoization techniques or move it to " +
6650-
"static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" +
6650+
"static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" +
66516651
"\nPlease update the following components: %s",
66526652
_sortedNames
66536653
);
@@ -6661,7 +6661,7 @@ var ReactStrictModeWarnings = {
66616661
error(
66626662
"Using UNSAFE_componentWillUpdate in strict mode is not recommended " +
66636663
"and may indicate bugs in your code. " +
6664-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
6664+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
66656665
"* Move data fetching code or side effects to componentDidUpdate.\n" +
66666666
"\nPlease update the following components: %s",
66676667
_sortedNames2
@@ -6673,7 +6673,7 @@ var ReactStrictModeWarnings = {
66736673

66746674
warn(
66756675
"componentWillMount has been renamed, and is not recommended for use. " +
6676-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
6676+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
66776677
"* Move code with side effects to componentDidMount, and set initial state in the constructor.\n" +
66786678
"* Rename componentWillMount to UNSAFE_componentWillMount to suppress " +
66796679
"this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " +
@@ -6691,11 +6691,11 @@ var ReactStrictModeWarnings = {
66916691

66926692
warn(
66936693
"componentWillReceiveProps has been renamed, and is not recommended for use. " +
6694-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
6694+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
66956695
"* Move data fetching code or side effects to componentDidUpdate.\n" +
66966696
"* If you're updating state whenever props change, refactor your " +
66976697
"code to use memoization techniques or move it to " +
6698-
"static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n" +
6698+
"static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state\n" +
66996699
"* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress " +
67006700
"this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " +
67016701
"To rename all deprecated lifecycles to their new names, you can run " +
@@ -6710,7 +6710,7 @@ var ReactStrictModeWarnings = {
67106710

67116711
warn(
67126712
"componentWillUpdate has been renamed, and is not recommended for use. " +
6713-
"See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n" +
6713+
"See https://react.dev/link/unsafe-component-lifecycles for details.\n\n" +
67146714
"* Move data fetching code or side effects to componentDidUpdate.\n" +
67156715
"* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress " +
67166716
"this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. " +
@@ -6783,7 +6783,7 @@ var ReactStrictModeWarnings = {
67836783
"\n\nThe old API will be supported in all 16.x releases, but applications " +
67846784
"using it should migrate to the new version." +
67856785
"\n\nPlease update the following components: %s" +
6786-
"\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",
6786+
"\n\nLearn more about this warning here: https://react.dev/link/legacy-context",
67876787
sortedNames
67886788
);
67896789
} finally {
@@ -8485,7 +8485,7 @@ function constructClassInstance(workInProgress, ctor, props) {
84858485
"Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n" +
84868486
"%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\n" +
84878487
"The above lifecycles should be removed. Learn more about this warning here:\n" +
8488-
"https://reactjs.org/link/unsafe-component-lifecycles",
8488+
"https://react.dev/link/unsafe-component-lifecycles",
84898489
_componentName,
84908490
newApiName,
84918491
foundWillMountName !== null ? "\n " + foundWillMountName : "",
@@ -9005,7 +9005,7 @@ var warnForMissingKey = function(child, returnFiber) {};
90059005

90069006
error(
90079007
"Each child in a list should have a unique " +
9008-
'"key" prop. See https://reactjs.org/link/warning-keys for ' +
9008+
'"key" prop. See https://react.dev/link/warning-keys for ' +
90099009
"more information."
90109010
);
90119011
};
@@ -9042,7 +9042,7 @@ function coerceRef(returnFiber, current, element) {
90429042
"String refs are a source of potential bugs and should be avoided. " +
90439043
"We recommend using useRef() or createRef() instead. " +
90449044
"Learn more about using refs safely here: " +
9045-
"https://reactjs.org/link/strict-mode-string-ref",
9045+
"https://react.dev/link/strict-mode-string-ref",
90469046
mixedRef
90479047
);
90489048
}
@@ -9064,7 +9064,7 @@ function coerceRef(returnFiber, current, element) {
90649064
"Function components cannot have string refs. " +
90659065
"We recommend using useRef() instead. " +
90669066
"Learn more about using refs safely here: " +
9067-
"https://reactjs.org/link/strict-mode-string-ref"
9067+
"https://react.dev/link/strict-mode-string-ref"
90689068
);
90699069
}
90709070

@@ -9130,7 +9130,7 @@ function coerceRef(returnFiber, current, element) {
91309130
"1. You may be adding a ref to a function component\n" +
91319131
"2. You may be adding a ref to a component that was not created inside a component's render method\n" +
91329132
"3. You have multiple copies of React loaded\n" +
9133-
"See https://reactjs.org/link/refs-must-have-owner for more information."
9133+
"See https://react.dev/link/refs-must-have-owner for more information."
91349134
);
91359135
}
91369136
}
@@ -10638,7 +10638,7 @@ function warnOnHookMismatchInDev(currentHookName) {
1063810638
error(
1063910639
"React has detected a change in the order of Hooks called by %s. " +
1064010640
"This will lead to bugs and errors if not fixed. " +
10641-
"For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks\n\n" +
10641+
"For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks\n\n" +
1064210642
" Previous render Next render\n" +
1064310643
" ------------------------------------------------------\n" +
1064410644
"%s" +
@@ -10658,7 +10658,7 @@ function throwInvalidHookError() {
1065810658
"1. You might have mismatching versions of React and the renderer (such as React DOM)\n" +
1065910659
"2. You might be breaking the Rules of Hooks\n" +
1066010660
"3. You might have more than one copy of React in the same app\n" +
10661-
"See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."
10661+
"See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
1066210662
);
1066310663
}
1066410664

@@ -12115,7 +12115,7 @@ var InvalidNestedHooksDispatcherOnRerenderInDEV = null;
1211512115
"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. " +
1211612116
"You can only call Hooks at the top level of your React function. " +
1211712117
"For more information, see " +
12118-
"https://reactjs.org/link/rules-of-hooks"
12118+
"https://react.dev/link/rules-of-hooks"
1211912119
);
1212012120
};
1212112121

@@ -13183,7 +13183,7 @@ function logCapturedError(boundary, errorInfo) {
1318313183
if (boundary.tag === HostRoot) {
1318413184
errorBoundaryMessage =
1318513185
"Consider adding an error boundary to your tree to customize error handling behavior.\n" +
13186-
"Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.";
13186+
"Visit https://react.dev/link/error-boundaries to learn more about error boundaries.";
1318713187
} else {
1318813188
var errorBoundaryName =
1318913189
getComponentNameFromFiber(boundary) || "Anonymous";
@@ -18380,7 +18380,7 @@ function commitHookEffectListMount(flags, finishedWork) {
1838018380
" }\n" +
1838118381
" fetchData();\n" +
1838218382
"}, [someId]); // Or [] if effect doesn't need props or state\n\n" +
18383-
"Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching";
18383+
"Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching";
1838418384
} else {
1838518385
addendum = " You returned: " + destroy;
1838618386
}
@@ -22072,7 +22072,7 @@ function warnAboutRenderPhaseUpdatesInDEV(fiber) {
2207222072
error(
2207322073
"Cannot update a component (`%s`) while rendering a " +
2207422074
"different component (`%s`). To locate the bad setState() call inside `%s`, " +
22075-
"follow the stack trace as described in https://reactjs.org/link/setstate-in-render",
22075+
"follow the stack trace as described in https://react.dev/link/setstate-in-render",
2207622076
setStateComponentName,
2207722077
renderingComponentName,
2207822078
renderingComponentName
@@ -22189,7 +22189,7 @@ function warnIfUpdatesNotWrappedWithActDEV(fiber) {
2218922189
"/* assert on the output */\n\n" +
2219022190
"This ensures that you're testing the behavior the user would see " +
2219122191
"in the browser." +
22192-
" Learn more at https://reactjs.org/link/wrap-tests-with-act",
22192+
" Learn more at https://react.dev/link/wrap-tests-with-act",
2219322193
getComponentNameFromFiber(fiber)
2219422194
);
2219522195
} finally {
@@ -22221,7 +22221,7 @@ function warnIfSuspenseResolutionNotWrappedWithActDEV(root) {
2222122221
"/* assert on the output */\n\n" +
2222222222
"This ensures that you're testing the behavior the user would see " +
2222322223
"in the browser." +
22224-
" Learn more at https://reactjs.org/link/wrap-tests-with-act"
22224+
" Learn more at https://react.dev/link/wrap-tests-with-act"
2222522225
);
2222622226
}
2222722227
}
@@ -23471,7 +23471,7 @@ function findHostInstanceWithWarning(component, methodName) {
2347123471
"%s was passed an instance of %s which is inside StrictMode. " +
2347223472
"Instead, add a ref directly to the element you want to reference. " +
2347323473
"Learn more about using refs safely here: " +
23474-
"https://reactjs.org/link/strict-mode-find-node",
23474+
"https://react.dev/link/strict-mode-find-node",
2347523475
methodName,
2347623476
methodName,
2347723477
componentName
@@ -23482,7 +23482,7 @@ function findHostInstanceWithWarning(component, methodName) {
2348223482
"%s was passed an instance of %s which renders StrictMode children. " +
2348323483
"Instead, add a ref directly to the element you want to reference. " +
2348423484
"Learn more about using refs safely here: " +
23485-
"https://reactjs.org/link/strict-mode-find-node",
23485+
"https://react.dev/link/strict-mode-find-node",
2348623486
methodName,
2348723487
methodName,
2348823488
componentName

0 commit comments

Comments
 (0)