counter: simple counter that autosaves with @postpostscript/reactiveStateBlob

Example

using viewCount = await counter(); viewCount.value += 1;

This infers the key from the name of the val that uses it. To specify it, pass the key option:

using viewCount = await counter({ key: "counterExample.viewCount" })

Full Example: @postpostscript/counterExample

Migrated from folder: State/counter