@erudilabs/use-previous
MITuse-previous hook stores the previous value of a state in a ref, it returns undefined on initial render and the previous value of a state after rerender:
85
Security score
0 known advisories in v1.0.0
Weekly downloads
—
Unpacked size
3.0 kB
Dependencies
0
Last publish
3 years ago
Security advisories
No known vulnerabilities affect v1.0.0.