Hi everyone,
A quick post on how to allow a string or number when defining PropTypes:
static propTypes = {
numberField: PropTypes.number.isRequired,
stringField: PropTypes.number.isRequired,
mixedField: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired
}
Thanks to this stackoverflow post for the info: https://stackoverflow.com/a/41808543/522859