dotto.x
Dotto.x is a tiny state manager for React, Svelte,and vanilla JS.
- Lightweight. Core is less than 135 bytes (minified and gzipped). Zero dependencies.
- Easy but strong. Simple working principle without magic but with all features from big state managers.
- Deep observable. You can subscribe and follow pinpoint changes without thinking about multiple re-renders and memoization.
- Strong plugin system. You can enhance your store with plugins. Logging, undoing changes, connecting Redux-devtools, and anything else.
- Tree Shakable. All library is split into small modules.
- Strong TypeScript support.
Status
:warning: :warning: :warning:
Project is in progress now. Please wait for version 1.0.0.
TODOS
- [ ] Documentation
- [ ] JSDoc comments
- [ ] Vue, RN, Solid bindings
- [ ] Examples on all frameworks
Installation
Using npm
Using yarn
Basic usage
Atomic stores
Mutable stores
Computed
Combine your stores
Subscribe to store or part of stores using take
.
Computed operators
take
- get value and subscribe to this paths
deep
- get value and subscribe to all store
Use with React
Install dotto.x
binding to React:
Using npm
Using yarn
store.js
ProjectCard.jsx
GitHub
https://github.com/dottostack/dotto.x/tree/main/packages/dotto.x