Skip to content

Commit d7a98a5

Browse files
authored
Fix strict mode badge URL (#26825)
## Summary Closes #26821 [[Fix #26821]](#26821) Update strict mode badge URL Updated the URL in the strict mode badge to point to the correct React documentation for StrictMode. The previous URL was outdated. Now, when a component is not running in StrictMode, the badge links to https://react.dev/reference/react/StrictMode for more information. ## How did you test this change? I verified that the strict mode badge now correctly links to the updated URL. Previously, it pointed to the outdated URL (https://fb.me/devtools-strict-mode). After the update, it correctly points to the React Dev documentation for StrictMode (https://react.dev/reference/react/StrictMode). _Since its my first contribution here, i have completed the CLA_
1 parent 2468a87 commit d7a98a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-devtools-shared/src/devtools/views/Components/InspectedElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default function InspectedElementWrapper(_: Props): React.Node {
237237
strictModeBadge = (
238238
<a
239239
className={styles.StrictModeNonCompliant}
240-
href="https://fb.me/devtools-strict-mode"
240+
href="https://react.dev/reference/react/StrictMode"
241241
rel="noopener noreferrer"
242242
target="_blank"
243243
title="This component is not running in StrictMode. Click to learn more.">

0 commit comments

Comments
 (0)