From 63f91f6049daa7999ce51ba9a7f77815e7ba8b2f Mon Sep 17 00:00:00 2001 From: simbathesailor Date: Tue, 9 Feb 2021 23:04:36 +0530 Subject: [PATCH] changes to the api --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e2368fc..23c8f40 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ ## Debug following hooks -*useEffect* *useCallback* *useMemo* *useLayoutEffect* *Custom hooks using core hooks* +**useEffect** | **useCallback** | **useMemo** | **useLayoutEffect** | **Custom hooks using core hooks** ## Working Example @@ -240,7 +240,7 @@ Above snapshot show the console log when b and c has changed in the above code e 2. Pass two arguments to useWhatChanged which makes it possible for useWhatChanged to log the names of the variables also. ```jsx -useWhatChanged([a, b, c, d], 'a, b, c, d'); // debugs the below useEffect +useWhatChanged([a, b, c, d], 'a, b, c, d', "anysuffix-string"); // debugs the below useEffect ```