diff --git a/src/lib/customPropTypes.js b/src/lib/customPropTypes.js index ce83fee4c4..3fe0b0e37e 100644 --- a/src/lib/customPropTypes.js +++ b/src/lib/customPropTypes.js @@ -8,7 +8,7 @@ const typeOf = (...args) => Object.prototype.toString.call(...args) * Ensure a component can render as a give prop value. */ export const as = (...args) => - PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.symbol])(...args) + PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string, PropTypes.symbol])(...args) /** * Ensure a prop is a valid DOM node.