Persists state in localStorage and keeps it in sync with the app.
localStorage key. If an array is provided, the array members are joined as key.
Initial value used if nothing exists in localStorage.
Stored state/result.
Persists state in localStorage and keeps it in sync with the app.