onClick={() => functionHere} vs onClick={functionHere}

前端 未结 0 1369
一生所求
一生所求 2020-12-06 09:44

Quick question: What is the main difference between:

onClick = {() => functionHere}

and:

onClick = {functionHere}


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