const propTypes = {
label: PropTypes.string,
};
const defaultProps = {};
Why does ESLint want us to provide default value for label when it is not required?
(react/require-default-props)
I am extending airbnb
I had the same problem. I used this as a solution.
const propTypes = {
lable: PropTypes.string,
};
const defaultProps = {
lable: '',
};