Search code examples
elm

Local Storage or other data persistence in elm


I am just beginning to look at Elm with the idea of building a simple web application with it. My idea would require to persist some user data in the browser.

Is there a way to handle data persistence directly with Elm? For example in browser session or even local storage? Or should I use ports to do it with JavaScript?


Solution

  • You could have a look at TheSeamau5's elm-storage. It makes it possible to store data in local storage.