This is the name of the value to store. Multiple instances with different keys don't affect each other.
Provides additional ways to configure the hook.
An array similar to useState containing the current value behind the localStorage key and a setter method. Calling setState(null) removes the item from localStorage.
Provides a wrapper around the localStorage API. Additionally, allows you to listen to changes between different instances of this hook. Other than that, it behaves mostly like a regular useState hook.