UNPKG

@quantajs/core

Version:

A compact, scalable, and developer-friendly state management library designed for any JavaScript environment. It includes a reactivity system that enables efficient and flexible data handling, making complex state management easy.

58 lines (41 loc) • 1.58 kB
# @quantajs/core ![Logo](https://raw.githubusercontent.com/quanta-js/quanta/master/assets/quantajs_banner.png) A compact, scalable, and developer-friendly **state management library** designed for any JavaScript environment. It includes a **reactivity system** that enables efficient and flexible data handling, making complex state management easy. ## šŸš€ Features āœ… **Framework-Agnostic** – Works in any JavaScript environment āœ… **Reactive State** – Simple yet powerful reactivity system āœ… **Scalable** – Suitable for small to large applications āœ… **Side Effects Handling** – Manage async actions with ease āœ… **Intuitive API** – Easy to learn and use ## šŸ“¦ Installation ```sh npm install @quantajs/core # or yarn add @quantajs/core # or pnpm add @quantajs/core ``` ## ⚔ Quick Start ```javascript import { createStore } from '@quantajs/core'; const counter = createStore({ state: { count: 0 }, actions: { increment() { this.count++; }, decrement() { this.count--; }, }, }); console.log(counter.count); // 0 counter.increment(); console.log(counter.count); // 1 ``` ## šŸ“œ License This project is licensed under the MIT [License](https://github.com/quanta-js/quanta/blob/main/LICENSE) - see the LICENSE file for details. ## šŸ’¬ Contributing We welcome contributions! Feel free to open issues, submit PRs, or suggest improvements. ## ⭐ Support If you find this library useful, consider giving it a ⭐ star on [GitHub](https://github.com/quanta-js/quanta)!