I m developing an online ER diagram generator using react.js and I'm using servlet for backend. I'm trying to create an option where users can save their diagram so that when the user refreshes the page or closes the browser and reopens it(either on same device or different device), the diagram's state i.e the tables arrangements and colors persist from where it was left.
Can someone help me out on how to do this?