Skip to content

Commit 4ad6213

Browse files
authored
Update hooks.md
1 parent f729be0 commit 4ad6213

File tree

1 file changed

+1
-1
lines changed
  • website/versioned_docs/version-7.1/api

1 file changed

+1
-1
lines changed

website/versioned_docs/version-7.1/api/hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Allows you to extract data from the Redux store state, using a selector function
4141

4242
> **Note**: The selector function should be [pure](https://en.wikipedia.org/wiki/Pure_function) since it is potentially executed multiple times and at arbitrary points in time.
4343
44-
The selector is approximately equivalent to the [`mapStateToProps` argument to `connect`](../using-react-redux/connect-mapstate) conceptually. The selector will be called with the entire Redux store state as its only argument. The selector will be run whenever the function component renders. `useSelector()` will also subscribe to the Redux store, and run your selector whenever an action is dispatched.
44+
The selector is approximately equivalent to the [`mapStateToProps` argument to `connect`](../using-react-redux/connect-extracting-data-with-mapStateToProps.md) conceptually. The selector will be called with the entire Redux store state as its only argument. The selector will be run whenever the function component renders. `useSelector()` will also subscribe to the Redux store, and run your selector whenever an action is dispatched.
4545

4646
However, there are some differences between the selectors passed to `useSelector()` and a `mapState` function:
4747

0 commit comments

Comments
 (0)