putting a property of multiple parts of arrays in the useEffect hook brackets,

前端 未结 0 650
南笙
南笙 2020-12-01 23:03

how can i amke this work?

 useEffect(() => {    fields.forEach( data => {
    if (inviteSent && data.email.value) setInviteSent(false);})
  }, [         


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