React.PropTypes.number float with min and max
问题 completed: React.PropTypes.number, Can i specify a minimum and maximum to a number props in React component. expected something like following: completed: React.PropTypes.numberBetween(min, max), I generate an array to specify the range attempt: completed: React.PropTypes.oneOf(Array.from({length: max -min+1, (v, k) => k + min})), However , i want completed props to accept also float as well , whereas , it accepts only integer now . How to make the following constraints combined : prop is