Skip to content

Commit

Permalink
changes to the api
Browse files Browse the repository at this point in the history
  • Loading branch information
simbathesailor committed Feb 9, 2021
1 parent 7164cff commit 63f91f6
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 63f91f6

Please sign in to comment.