0.0.1 • Published 4 years ago
create-ref-value v0.0.1
create-ref
Atomic entity for managing local variables in immutable style
Install
npm install create-ref
createRef
import createRef from "create-ref";
const val = createRef(0);
val.get(); // 0
val.set(prev => prev + 1);
val.get(); // 1
0.0.1
4 years ago