UserSession with React JS

I do it with the browser’s local store.

localStorage.setItem(“mySession”, “projects”);
localStorage.getItem(“mySession”);