From 9bfeea1229c7063670dd5cad360c085f92b66f86 Mon Sep 17 00:00:00 2001 From: Shail Mehta Date: Sun, 30 Jun 2024 14:54:14 +0530 Subject: [PATCH] Update URL of the React "Rules of Hooks" documentation to point to the correct location (#62995) Co-authored-by: shail-mehta Co-authored-by: fabiankaegy --- packages/data/README.md | 2 +- packages/data/src/components/use-select/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/data/README.md b/packages/data/README.md index 67438a80eebe5..5aa6c4fd13cbb 100644 --- a/packages/data/README.md +++ b/packages/data/README.md @@ -796,7 +796,7 @@ _Returns_ Custom react hook for retrieving props from registered selectors. -In general, this custom React hook follows the [rules of hooks](https://reactjs.org/docs/hooks-rules.html). +In general, this custom React hook follows the [rules of hooks](https://react.dev/reference/rules/rules-of-hooks). _Usage_ diff --git a/packages/data/src/components/use-select/index.js b/packages/data/src/components/use-select/index.js index d047e7265908c..a0073d7e847fc 100644 --- a/packages/data/src/components/use-select/index.js +++ b/packages/data/src/components/use-select/index.js @@ -235,7 +235,7 @@ function useMappingSelect( suspense, mapSelect, deps ) { * Custom react hook for retrieving props from registered selectors. * * In general, this custom React hook follows the - * [rules of hooks](https://reactjs.org/docs/hooks-rules.html). + * [rules of hooks](https://react.dev/reference/rules/rules-of-hooks). * * @template {MapSelect | StoreDescriptor} T * @param {T} mapSelect Function called on every state change. The returned value is