Is react setState asynchronous? How to use Synchronize setState?

/**
   * output:
   *  click  {page: 2}
   *  click  {page: 3}
   * @memberof index
   */
Feb.15,2022

setState itself is not asynchronous, but for performance optimization, there is no immediate update


get

from the callback of the second parameter.
this.setState({},()=>{
    console.log(this.state.obj);
})

  official documents  

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e49b20-44d69.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e49b20-44d69.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?