proptypes shape is only for obj code example Example: react propthpes or size: PropTypes.oneOfType([ PropTypes.string, PropTypes.number ]),