protai
v1.0.9
Published
A simple Jotai-like state management library for Preact based heavily on Jack Herrington's work.
Downloads
24
Readme
protai
A minimalistic Jotai-like state management system for Preact.
Features a custom made useSyncExternalStore
hook for Preact too!
Usage
- Install the package
npm install protai
- Make use of the
useAtom
anduseAtomValue
hooks as though you were using the regular Jotai package!
(Extremely) heavily based on John Herrington's video below:
https://www.youtube.com/watch?v=gg31JTZmFUw