loading...

re: HowTo: Custom React localStorage Hook ⚓ VIEW POST

TOP OF THREAD FULL DISCUSSION
re: True thanks for the tip! Hooking this up to, for example, a useReducer() hook would ensure a global state like that, but I thought it would be outs...
 

Ah I was thinking of adding and event handler for window 'storage' event using useEffect and then refreshing the value if it changed.

code of conduct - report abuse