Skip to content

Commit 6a1d86c

Browse files
Lukasz Ostrowskilex111
Lukasz Ostrowski
andcommitted
Links to React Redux hooks api (#2202)
* Links to React Redux hooks api Since Hooks are already released for Redux, link the docs * Update hooks-faq.md Co-authored-by: Alexey Pyltsyn <[email protected]>
1 parent 8cd5737 commit 6a1d86c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/docs/hooks-faq.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ Often, render props and higher-order components render only a single child. We t
106106

107107
You can continue to use the exact same APIs as you always have; they'll continue to work.
108108

109-
In the future, new versions of these libraries might also export custom Hooks such as `useRedux()` or `useRouter()` that let you use the same features without needing wrapper components.
109+
React Redux since v7.1.0 [supports Hooks API](https://react-redux.js.org/api/hooks) and exposes hooks like `useDispatch` or `useSelector`.
110+
111+
Libraries like React Router might support hooks in the future.
110112

111113
### Do Hooks work with static typing? {#do-hooks-work-with-static-typing}
112114

0 commit comments

Comments
 (0)