This.handleClick = this.handleClick.bind (this) do not understand

this.handleClick = this.handleClick.bind (this)

Mar.16,2021

The this point of the

function is determined when it enters the execution context, and it is not statically bound.

  < / div > 

  • or use the arrow function to define the method. Because the arrow function is not bound to this, you will look up the this and you will find the component instance to use
  • or use es7's :: (I haven't used it, so I won't say it)
  • in short, it is recommended that you re-learn bind, call, apply , react this and other knowledge

    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-1b42110-2b327.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-1b42110-2b327.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
    Need Help?