I have a prop named options which is an array with object or string. How can we use React PropTypes to define options? I just went through https://reactjs.org/docs/typechecking-with-proptypes.html
From PropTypes doc:
// An array of a certain type
optionalArrayOf: PropTypes.arrayOf(PropTypes.number),
but how we can put string and object into PropTypes.arrayOf ? Thanks