@simbathesailor/use-what-changed
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "@simbathesailor/use-what-changed", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "simbathesailor", |
@@ -23,3 +23,3 @@ # use-what-changed | ||
I personally have been working on hooks for quite a long time. I use react hooks every day in my open source projects and also at work. | ||
I have been working on hooks for quite a long time. I use react hooks every day in my open source projects and also at work. | ||
@@ -80,3 +80,3 @@ Now, using useEffect, useCallback, useMemo have really helped me compose the logic well together. But when the dependency list gets long. When I say long , it can be any thing greater than 3 for me and can be more or less for others. | ||
Note: This hook only logs in the development environment. It make use of standard process.env.NODE_ENV to decide. | ||
Note: This hook only logs in the development environment. It make use of standard process.env.NODE_ENV to decide. Open devtools console tab to see the logs. | ||
@@ -125,6 +125,11 @@ 1. When only dependency are passed as the single argument | ||
A unique background color will be given to each effect preceding title text. It helps us in recognising the specific effect when debugging. A unique id is also given to help the debugging further. | ||
A unique background color will be given to each title text. It helps us in recognising the specific effect when debugging. A unique id is also given to help the debugging further. | ||
<p align="center"><img src="demoimages/multipleeffectandcolorcoding.png" width="500" align="center"></p> | ||
## Demo link | ||
 | ||
 | ||
## Contributing | ||
@@ -131,0 +136,0 @@ |
36438
155