localStorage is not set on production, but is on localhost – Javascript
I created a React application, where I try to set some key in the local storage of the browser. I also set the session storage. When I run my application on development mode, it works - I successfully set keys…