In componentDidMount, you can call a function using setInterval, and you can't access the properties of state in the called function.

call the runGame function using setInterval in componentDidMount

runGame:
:
constructor():

Mar.07,2021

setInterval(this.runGame.bind(this), 1000);
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-1b3bd9e-40853.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-1b3bd9e-40853.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?