Skip to content
generated from stagas/ts

virtual reactive function state for vdom-alike applications

Notifications You must be signed in to change notification settings

stagas/virtual-state

Repository files navigation

virtual-state

virtual reactive function state for vdom-alike applications

🔧 Install · 🧩 Example · 📜 API docs · 🔥 Releases · 💪🏼 Contribute · 🖐️ Help


Install

$ npm i virtual-state

work in progress

API

Table of Contents

Hook

src/index.ts:8-12

Hook.

Value

src/index.ts:17-48

Value.

Parameters

  • provider Provider
  • initialValue (T | function (): T)

HookValues

src/index.ts:53-82

HookValues.

Parameters

Provider

src/index.ts:87-188

Provider.

AsyncContext

src/index.ts:193-257

AsyncContext.

Parameters

Collection

src/index.ts:262-292

Collection.

Parameters

  • creator function (id: string, initial: V, prev: T): T

Contribute

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas