Skip to content

Commit

Permalink
Add an example for using named imports with trackExtraHooks (#245)
Browse files Browse the repository at this point in the history
* Add an example for using named imports with trackExtraHooks

* Update README.md

Co-authored-by: Vitali Zaidman <vzaidman@gmail.com>
  • Loading branch information
xepozz and vzaidman authored Jul 4, 2022
1 parent bdc0e97 commit 0f364e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ Track custom hooks:
```js
whyDidYouRender(React, {
trackExtraHooks: [
[ReactRedux, 'useSelector']
// notice that 'useSelector' is a named export
[ReactRedux, 'useSelector'],
]
});
```
Expand Down

0 comments on commit 0f364e8

Please sign in to comment.