Dev Tools · 1h ago
React useCookie Hook Turns Cookies into Reactive State
A new React hook, useCookie from @reactuses/core, makes cookies behave like component state, automatically re-rendering when values change. It wraps js-cookie for reliable attribute handling like expiry and SameSite. This eliminates manual cookie parsing and stale state across components.
Meridian48 take
A small but practical improvement for React developers who need server-accessible client state without the boilerplate.
react-hookscookies