Skip to content
VueUse · Lesson 02 of 06 · Builds on Meet VueUse

Saving state with useStorage

Keep a ref in sync with localStorage so a note or a setting survives a reload, and add new fields without breaking old visitors.