UNPKG

@turbox3d/reactivity-react

Version:

Large-scale reactive state management library for react

17 lines 519 B
// 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 }; export 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)); } } } export var IdCustomType = 'react';