class Field extends React.Component {
static ifFieldNotEmpty() {
const { fields } = this.props; // not works
console.log(this);
}
render() {
const { fields } = this.props; // work fine
return (
<h2>render component</h2>
);
}
}