标签:false ext als one == rop render dom his
shouldComponentUpdate(nextProps, nextState) {
if(nextProps.content !== this.props.content) {
return true
}else {
return false
}
}
render() {
console.log('child render')
const { content } = this.props
return (
<li onClick={this.handleClick}>
{ content }
{/* { this.props.content } */}
</li>
)
}
标签:false ext als one == rop render dom his
原文地址:https://www.cnblogs.com/nayek/p/12364702.html