type checking with proptypes in react js code example Example: react propthpes or size: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),