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: