anyone have a recommendation for a simple cookie, localstorage, session etc library that works well with it?
[1] htmx.org
grateful for any replies!
For authenticated users, just store a user pref record on your database. For state that is not linked to a user account, use the standard session mechanism of your backend. Alternatively, just use good-old functional cookies, with the Set-Cookie HTTP header. Set them to be available to javascript if needed.