@shish2k/hyperapp-localstorage

Functions to keep app state in sync with localstorage


Keywords
hyperapp, localstorage
License
MIT
Install
npm install @shish2k/hyperapp-localstorage@1.0.0

Documentation

HyperApp LocalStorage

A hyperapp Subscriber and Effect to save values to and load values from the LocalStorage space.

Very much stolen from @zaceno's Hyperapp Code-Along, I'm just putting it in a package because I don't want to copy-paste across all my projects.

See demo.html for a self-contained, well-commented example.