main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
420 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var react_1 = require("react");
|
---|
4 | var createMemo = function (fn) {
|
---|
5 | return function () {
|
---|
6 | var args = [];
|
---|
7 | for (var _i = 0; _i < arguments.length; _i++) {
|
---|
8 | args[_i] = arguments[_i];
|
---|
9 | }
|
---|
10 | return react_1.useMemo(function () { return fn.apply(void 0, args); }, args);
|
---|
11 | };
|
---|
12 | };
|
---|
13 | exports.default = createMemo;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.