protai

1.0.9 • Public • Published

protai

A minimalistic Jotai-like state management system for Preact.

Features a custom made useSyncExternalStore hook for Preact too!

Usage

  1. Install the package npm install protai
  2. Make use of the useAtom and useAtomValue 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

Readme

Keywords

Package Sidebar

Install

npm i protai

Weekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

5.63 kB

Total Files

6

Last publish

Collaborators

  • evankj