source: imaps-frontend/node_modules/react-use/lib/factory/createMemo.js@ d565449

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";
2Object.defineProperty(exports, "__esModule", { value: true });
3var react_1 = require("react");
4var 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};
13exports.default = createMemo;
Note: See TracBrowser for help on using the repository browser.