UserSession with React JS

Hi everyone,
I’m creating a small webapp with React JS to practice with this library. I created a login and would like to put the user in session without using the localStorage, is this possible?

I would like to use the session as I did with JAVA or PHP, but I don’t know if ReactJS allows it.

Thank you all

I do it with the browser’s local store.

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