Returns a getter and setter to track the state of a local storage item with the given key, falling back to the optional default value when it isn't set.
Optional
Returns a getter and setter to track the state of a local storage item with the given key, falling back to the optional default value when it isn't set.