An open API service indexing awesome lists of open source software.

https://github.com/pixcai/statelib

A stupid, simple, clean, ridiculously small state management library
https://github.com/pixcai/statelib

Last synced: about 2 months ago
JSON representation

A stupid, simple, clean, ridiculously small state management library

Awesome Lists containing this project

README

          

# statelib
A stupid, simple, clean, ridiculously small state management library

# Usage
```js
var statelib = require('./statelib');

var x = statelib(1);
console.log(x()); // output: 1

var y = statelib(() => x() + 2);
console.log(y()); // output: 3

x(8);
console.log(y()); // output: 10
```

# License
MIT