React Hooks, useState, useEffect: function running multiple times when clicking on button

前端 未结 0 1115
被撕碎了的回忆
被撕碎了的回忆 2020-12-09 05:23

Hey guy\'s could someone explain me why my function is running multiple times like 23x times when i click on a button that refrers to the function with a onClick event?

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