I've been programming on React for about a year and I always see this react/forbid-prop-types coming, so I have this rule out: // eslint-disable-next-line react/forbid-prop-types, like:
SigninSubmitButton.propTypes = {
signInAsync: PropTypes.func.isRequired,
disabledProp: PropTypes.oneOfType([PropTypes.bool, PropTypes.number])
.isRequired,
// eslint-disable-next-line react/forbid-prop-types
style: PropTypes.array,
};
What is the problem with those types?