valdres-alpine
v0.0.1
Published
Alpine.js bindings for Valdres — reserved. Not yet implemented; today use the framework-agnostic `valdres` core. See README.
Maintainers
Readme
valdres-alpine
Reserved — not yet implemented.
This package name is reserved for first-class Alpine.js bindings for Valdres. It currently ships no functionality.
Use Valdres with Alpine today
The valdres core is framework-agnostic — drive it directly and bridge it into
Alpine's reactivity:
import { store, atom } from "valdres"
const s = store()
const counter = atom(0)
s.get(counter) // read
s.set(counter, 1) // write
const unsub = s.sub(counter, () => {
// push s.get(counter) into an Alpine store (Alpine.store) or x-data
})Dedicated valdres-alpine bindings will wrap this pattern for you. Track
progress at https://github.com/eigilsagafos/valdres
