React state conflict with javascript “document.getElementById” function

后端 未结 0 1805
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-24 08:21

I have this function in my React web application:

const handleRateLightSelection = (cardId, rateId) => {

setRateLightSelected(0);

if (lastSelectedLightCardId         


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