Skip to content

Commit 0b54aa1

Browse files
GGAlanSmitheemarkerikson
authored andcommitted
Update hooks.md (reduxjs#1405)
In response to reduxjs#1404 @markerikson let me know if you aren't happy with the wording for any reason.
1 parent acfb45e commit 0b54aa1

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
@@ -425,3 +425,7 @@ export function useShallowEqualSelector(selector) {
425425
return useSelector(selector, shallowEqual)
426426
}
427427
```
428+
429+
### Additional considerations when using hooks
430+
431+
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)