Can optionalNumber be a floating point number in this case?
optionalNumber: React.PropTypes.number
React.PropTypes.number is performing a typeof check against 'number' so any number (1, .1, 1e-3, Infinity, NaN) will pass.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With