From 0f364e8451f5283e4d59054c96a9e2788f497045 Mon Sep 17 00:00:00 2001 From: Dmitriy Derepko Date: Mon, 4 Jul 2022 22:52:32 +0300 Subject: [PATCH] Add an example for using named imports with trackExtraHooks (#245) * Add an example for using named imports with trackExtraHooks * Update README.md Co-authored-by: Vitali Zaidman --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a76b01a..f7a6142 100644 --- a/README.md +++ b/README.md @@ -235,7 +235,8 @@ Track custom hooks: ```js whyDidYouRender(React, { trackExtraHooks: [ - [ReactRedux, 'useSelector'] + // notice that 'useSelector' is a named export + [ReactRedux, 'useSelector'], ] }); ```