Я получаю ошибку es lint, такую как [eslint], getBrodcastedList отсутствует в валидации валидации [реагировать / проп-типы]
import { PropTypes } from 'react';
class HelloMessage extends React.Component {
getRequests(query) {
this.props.getList(query);//this line [eslint] 'getList' is missing in props validation [react/prop-types]
}
render() {
return (
<div>
Hello {this.props.name}
</div>
);
}
}
ReactDOM.render(
<HelloMessage name="Taylor" />,
document.getElementById('hello-example')
);
помогите мне.Как определить типы реквизита для этой ошибки es lint на -> "this.props.getList (query)"