react-use-local-storage
react-use-local-storage copied to clipboard
Doesn't work well in testing environments
Since any meaningful behavior hinges on the availability of the window
object, this hook doesn't work well in testing environments. We should be able to gracefully degrade to work exactly like setState
if window
or the localStorage
API isn't available.