Scoped Model pattern in Preact (but with Hooks)
- 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.
npm install --save preact-scoped-model
yarn add preact-scoped-model
MIT © lxsmnsyc