React setState function from useState not updaing state value

前端 未结 0 425
长发绾君心
长发绾君心 2020-12-14 04:57

From the below code, while i do call the setSnake function with newer array , the snake variable ( state var ) does not update post the First key press... on further key pre

相关标签:
回答
  • 消灭零回复
提交回复
热议问题