diff --git a/packages/styled-components/src/utils/isPlainObject.js b/packages/styled-components/src/utils/isPlainObject.js index 7eb2a440..d98629f0 100644 --- a/packages/styled-components/src/utils/isPlainObject.js +++ b/packages/styled-components/src/utils/isPlainObject.js @@ -5,4 +5,4 @@ export default (x: any): boolean => typeof x === 'object' && (x.toString ? x.toString() : Object.prototype.toString.call(x)) === '[object Object]' && /* check for reasonable markers that the object isn't an element for react & preact/compat */ - !(x.$$typeof && ('_owner' in x) || x.__v); + !('props' in x && (x.$$typeof || x.constructor === undefined));