Skip to content

Commit 40b313f

Browse files
Update hooks.md
In response to reduxjs#1404 @markerikson let me know if you aren't happy with the wording for any reason.
1 parent 6c873c7 commit 40b313f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/api/hooks.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,3 +428,7 @@ export function useShallowEqualSelector(selector) {
428428
return useSelector(selector, shallowEqual)
429429
}
430430
```
431+
432+
### Additional considerations when using hooks
433+
434+
There are some architectural trade offs to take into consideration when deciding whether to use hooks or not. Mark Erikson summarizes these nicely in his two blog posts [Thoughts on React Hooks, Redux, and Separation of Concerns](https://blog.isquaredsoftware.com/2019/07/blogged-answers-thoughts-on-hooks/) and [Hooks, HOCs, and Tradeoffs](https://blog.isquaredsoftware.com/2019/09/presentation-hooks-hocs-tradeoffs/).

0 commit comments

Comments
 (0)