Skip to content

Commit

Permalink
Merge pull request #24 from simbathesailor/task/support-useLayoutEffect
Browse files Browse the repository at this point in the history
changes to the api
  • Loading branch information
simbathesailor authored Feb 9, 2021
2 parents 7164cff + 63f91f6 commit 86a4b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
```

<p align="center"><img src="demoimages/indexandname.png" width="500" align="center"></p>
Expand Down

0 comments on commit 86a4b60

Please sign in to comment.