export const isFunctionalComponent = (Component: Function) => { const prototype = Component.prototype; return !prototype || !prototype.isReactComponent; }; export const generateKey = (() => { let count = 0; return () => `${++count}`; })();