lundi 8 octobre 2018

How do I render a user's previous session with React?

I am building a webapp using React js that allows users to add text, alter it, add images, alter them, and upload their own images.

I want to be able to reload the page as they left it if they close the tab or go to a different page. I know that I can store with localStorage, however I am having trouble rendering that when they return to that page. How do I inject that localStorage into the body so that it renders that session?




Aucun commentaire:

Enregistrer un commentaire