How to clear array defined in usestate in hooks?

前端 未结 0 645
梦如初夏
梦如初夏 2021-02-06 16:41

Assume that

const [first,change] = useState([])

I made a button which on clicking should clear the first array

const funct = () =&         


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