MCPcopy Create free account
hub / github.com/WebReflection/neverland / useRef

Function useRef

test/neverland.js:534–541  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

532
533 /*! (c) Andrea Giammarchi - ISC */
534 var useRef = function useRef(value) {
535 var state = current();
536 var i = state.i++;
537 var stack = state.stack;
538 return i < stack.length ? stack[i] : stack[i] = {
539 current: value
540 };
541 };
542
543 /*! (c) Andrea Giammarchi - ISC */
544

Callers 1

test.jsFile · 0.70

Calls 1

currentFunction · 0.85

Tested by

no test coverage detected