UNPKG

@turbox3d/reactivity-react

Version:

Large-scale reactive state management library for react

24 lines (23 loc) 692 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IdCustomType = void 0; exports.copyStaticProperties = copyStaticProperties; // based on https://github.com/mridgway/hoist-non-react-statics/blob/master/src/index.js var hoistBlackList = { $$typeof: true, render: true, compare: true, type: true }; function copyStaticProperties(base, target) { var keys = Object.keys(base); for (var index = 0; index < keys.length; index++) { var key = keys[index]; if (hoistBlackList[key] === void 0) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(base, key)); } } } var IdCustomType = exports.IdCustomType = 'react';