Open snmishra opened 5 years ago
Right now the prop type is defined as textComponent: PropTypes.func, A better prop type would be textComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.Object]) to allow components that are classes.
textComponent: PropTypes.func,
textComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.Object])
Right now the prop type is defined as
textComponent: PropTypes.func,
A better prop type would betextComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.Object])
to allow components that are classes.