A snapshot is a plain object: { value, context, event }.
serializeSnapshot() makes it JSON-safe so you can store it anywhere โ
localStorage, a database, or send it over the wire.
deserializeSnapshot() validates the shape and reconstructs it.
Increment the counter, save, reset to zero, then load to resume exactly where you left off.