We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
PureComponent之后,下面的代码就不用写了,在本应用中
shouldComponentUpdate(np, ns) { //防止组件不必要的更新 return this.props.index !== np.index || this.state.messageCount !== ns.messageCount; }
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: