diff --git a/src/isomorphic/classic/element/ReactElementValidator.js b/src/isomorphic/classic/element/ReactElementValidator.js index a899654153b4..3f7f717715d6 100644 --- a/src/isomorphic/classic/element/ReactElementValidator.js +++ b/src/isomorphic/classic/element/ReactElementValidator.js @@ -183,8 +183,10 @@ function validatePropTypes(element) { var ReactElementValidator = { createElement: function(type, props, children) { - var validType = typeof type === 'string' || typeof type === 'function' || - (type !== null && typeof type === 'object'); + var validType = + typeof type === 'string' || + typeof type === 'function' || + type !== null && typeof type === 'object' && typeof type.tag === 'number'; // We warn in this case but don't throw. We expect the element creation to // succeed and there will likely be errors in render. if (!validType) {