0.0.2 • Published 2 years ago

virtual-state v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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