Reactjs, what's the best option for save user data in browser?
<p>I'm developing a front-end project using reactjs. I'm saving the return from my server using localStorage, is there a more efficient &amp; secure method for saving user data in the browser?</p>

<pre><code>localStorage.setItem('user', data);

// Recupere Data
var user = localStorage.getItem('user');
console.log(user);


/* Output */
{_id:1, name: "name here", email: "email@email.com" }
</code></pre>