I'm currently trying to save an item into sessionStorage before rendering occurs.
My code is something like this:
componentWillMount() { sessionStorage.setItem("isUserLogged", false); } However, it says that "sessionStorage is not defined." How do I use sessionStorage in React before rendering occurs?
windowis not defined