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/>
</someClass1>