Skip to content

Commit

Permalink
Update URL of the React "Rules of Hooks" documentation to point to th…
Browse files Browse the repository at this point in the history
…e correct location (#62995)

Co-authored-by: shail-mehta <shailu25@git.wordpress.org>
Co-authored-by: fabiankaegy <fabiankaegy@git.wordpress.org>
  • Loading branch information
3 people authored Jun 30, 2024
1 parent 0ea6751 commit 9bfeea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_

Expand Down
2 changes: 1 addition & 1 deletion packages/data/src/components/use-select/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>} T
* @param {T} mapSelect Function called on every state change. The returned value is
Expand Down

0 comments on commit 9bfeea1

Please sign in to comment.