useCookie
Callable
Type parameters
- CookieValues: Record<string, any>
Parameters
optionaloptions: any
Cookie options.
Returns readonly [cookies: CookieValues, methods: { getCookie: <Name>(name: Name) => CookieValues[Name] | null; removeCookie: <Name>(name: Name, attributes?: CookieDomainAttributes) => void; setCookie: <Name>(name: Name, value: CookieValues[Name]) => void }]
React hook for managing cookies.