usehey
v0.0.1
Published
Say hey(), get state. Real tiny state manager (I use) for webgl things (but really anything). It's realy just a small wrapper around mitt, using js I don't fully understand.
Downloads
2
Maintainers
Readme
UseHey()
Sounds like a hook but it's not. Hey was taken.
Multipurpose, bare bones front end state management and event emitter.
Init with useHey()
Set state with hey.something = 123
Watch changes with hey.on("something", () => conosle.log(hey.something))
It'll be available globally, in all of your files without importing (all hail the window object).