Skip to content

wirestate [monorepo] [docs]

npmlicense

Compatibility package for the unscoped wirestate name.

This package is React-oriented. Lit users should install the scoped Lit packages directly.

New projects should prefer the scoped packages for the stack they use: @wirestate/core, @wirestate/react, @wirestate/lit, @wirestate/mobx, @wirestate/signals, @wirestate/react-mobx, @wirestate/lit-mobx, @wirestate/react-signals, @wirestate/lit-signals.

Install

bash
npm install wirestate

Exports

  • wirestate re-exports @wirestate/core and @wirestate/react.
  • wirestate/mobx re-exports @wirestate/mobx and @wirestate/react-mobx.
  • wirestate/signals re-exports @wirestate/signals and @wirestate/react-signals.

Lit APIs are available from the scoped @wirestate/lit, @wirestate/lit-mobx, and @wirestate/lit-signals packages.

Start

ts
import { Injectable, Container } from "wirestate";
import { Action, Observable, makeObservable, observer } from "wirestate/mobx";
import { signal, useSignals } from "wirestate/signals";

Learn More

License

MIT