FER202Xuất hiện trong 2 đề thi
Can you provide an example of a custom property validator in React that checks if a prop is a positive number?
Các lựa chọn
Avalue: PropTypes.positiveNumber
Bvalue: function(props, propName, componentName)
Cvalue: PropTypes.number && value > 0
Dvalue: PropTypes.number && value >= 0