npm.io
3.0.0 • Published 4 years ago

preact-scoped-model

Licence
MIT
Version
3.0.0
Deps
1
Size
343 kB
Vulns
0
Weekly
0
Stars
23

preact-scoped-model

Scoped Model pattern in Preact (but with Hooks)

NPM JavaScript Style GuideOpen in CodeSandbox

Features

  • Contextual State: Inject state into your component tree.
  • Composition: Write states as if you are writing components, use Preact Hooks to compose state logic.
  • Granular control: Only watch updates you need, not when the whole state updates.

Install

npm install --save preact-scoped-model
yarn add preact-scoped-model

Documentation

License

MIT lxsmnsyc

Keywords