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
null
import React from 'react'; const App = () => null
console.log(this.state.value); // 1 this.setState({ value: 2 }, () => { console.log(this.state.value); // 2 }) console.log(this.state.value); // 1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
1 . render可以直接return
null
2 . setState 是异步的,并且有回调函数
The text was updated successfully, but these errors were encountered: