What is difference between for and .map in Reactjs

前端 未结 0 1976
误落风尘
误落风尘 2020-12-25 13:51

I have some codes:

 const moves = history.map((step, move) => {
      const desc = move ?
        \'Go to move #\' + move :
        \'Go to game start\';
          


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