Is it possible to use React.PropTypes to enforce length\'s on an array?
React.PropTypes
Here is a very simple case:
const TWO_NUMBERS = PropTypes.array; // i
PropTypes checks for types not for attributes. Also, checking for PropTypes is disabled in production mode. That makes it impossible for PropTypes to check for ever changing array lengths during run-time.
PropTypes