preact-scoped-model
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Package Sidebar

Install

npm i preact-scoped-model

Weekly Downloads

2

Version

3.0.0

License

MIT

Unpacked Size

351 kB

Total Files

62

Last publish

Collaborators

  • lxsmnsyc