Skip to content

Latest commit

 

History

History
71 lines (52 loc) · 3.2 KB

README.md

File metadata and controls

71 lines (52 loc) · 3.2 KB

Yobta Stores

A collection of tiny, observable stores designed to move logic away from components and help write reactive applications. These stores are:

  • Small in size.
  • Tree-shakable for optimal performance.
  • Zero dependencies, so you don't have to worry about other libraries affecting your code.
  • ESM-only, meaning they are compatible with ECMAScript Modules.
  • Typescript compatible.

Installation

To install Yobta Stores, use the following command:

npm i @yobta/stores

Documentation

The following sections provide documentation on different parts of Yobta Stores:

Stores

  • Basic - A general observable store for implementing any custom logic you need.
  • Machine - A simple observable state machine.
  • Map - An observable Map object.
  • Connectivity - Tracks the browser's connectivity state.
  • Modal - Tracks the browser's connectivity state.
  • Plain Object - An observable plain object.
  • Stack - An observable stack object.
  • Derived - Aggregates data from one or multiple stores.

Plugins

Adapters

Utilities

Alternatives: Jotai Nanostores Recoil

Kudos: