If the parent's shouldComponentUpdate return fasle, will update whether nested elements?

class someClass1 extends Component {
 constructor(props) {
super(props);
 this.props = props;
}

 shouldComponentUpdate() {
 return false;
}
 render() {
 return <div></div>
}
}

class someClass1 extends Component {
 constructor(props) {
super(props);
 this.props = props;
}
 render() {
 return <span></span>
}
}

<someclass1>
<someclass2>
</someclass2></someclass1>
June 26th 19 at 14:25
1 answer
June 26th 19 at 14:27
Solution
If shouldComponentUpdate returns false - the method of rendering the current component will be invoked. Accordingly, the child components also will not be rendered begin yourself. But it can happen (e.g. timer), in a child component, you call setState - then it will be updated (regardless of parent)

Find more questions by tags React