@reactizer/session
v0.30.0
Published
Reactizer's session utilities.
Downloads
4,754
Readme
@reactizer/session
Utilities for session stuff.
API
Local and session storages are checked for existence.
import { cookies, localStorage, sessionStorage } from "@reactizer/session";
const key = "key";
const value = "value";
cookies.save(key, value);
cookies.load(key);
cookies.remove(key);
// Same API for 'localStorage' and 'sessionStorage'
License
MIT