Skip to content

Commit

Permalink
Update hooks.md (#1405)
Browse files Browse the repository at this point in the history
In response to #1404 

@markerikson let me know if you aren't happy with the wording for any reason.
  • Loading branch information
GGAlanSmithee authored and markerikson committed Jan 15, 2020
1 parent 7893b35 commit 9a10b15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/hooks.md
Expand Up @@ -425,3 +425,7 @@ export function useShallowEqualSelector(selector) {
return useSelector(selector, shallowEqual)
}
```

### Additional considerations when using hooks

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 comments on commit 9a10b15

Please sign in to comment.